summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/webview/unhandled_keyboard_event_handler_win.cc
blob: e31aabbf90125dd632147d9ae04efe3483728ff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2012 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 "ui/views/controls/webview/unhandled_keyboard_event_handler.h"

#include "ui/events/event.h"

namespace views {

// static
void UnhandledKeyboardEventHandler::HandleNativeKeyboardEvent(
    gfx::NativeEvent event,
    FocusManager* focus_manager) {
  // Any unhandled keyboard/character messages should be defproced.
  // This allows stuff like F10, etc to work correctly.
  const MSG& message(event->native_event());
  DefWindowProc(message.hwnd, message.message, message.wParam, message.lParam);
}

}  // namespace views