summaryrefslogtreecommitdiffstats
path: root/views/focus/accelerator_handler_gtk.cc
blob: e795d06aee0fa790b7405bf54da0b739825b820d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "views/focus/accelerator_handler.h"

#include <gtk/gtk.h>

#include "views/accelerator.h"
#include "views/focus/focus_manager.h"

namespace views {

AcceleratorHandler::AcceleratorHandler() {}

bool AcceleratorHandler::Dispatch(GdkEvent* event) {
  // The logic for handling keyboard accelerators has been moved into
  // NativeWidgetGtk::OnEventKey handler (views/widget/widget_gtk.cc).
  gtk_main_do_event(event);
  return true;
}

}  // namespace views