diff options
author | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 10:00:52 +0000 |
---|---|---|
committer | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 10:00:52 +0000 |
commit | c564cc6d1f2ff72ad512bf85cfada553cdc971c3 (patch) | |
tree | a5900e4891f0533600d6e0f09ea0410c3b785c94 /webkit/glue/webview_impl.cc | |
parent | f8c74e59733b0175df56812ddd949de40ba953ac (diff) | |
download | chromium_src-c564cc6d1f2ff72ad512bf85cfada553cdc971c3.zip chromium_src-c564cc6d1f2ff72ad512bf85cfada553cdc971c3.tar.gz chromium_src-c564cc6d1f2ff72ad512bf85cfada553cdc971c3.tar.bz2 |
A quick fix for Issue 18353.
This is my stupid mistake that I forgot removing the platform-dependent code in our renderer code.
This change just add defined(OS_MACOSX) instead of removing #ifdef blocks since they are used by Chrome OS.
BUG=18353 "Regression: Arrow Keys and Page Up/Down Keys Have No Affect"
TEST=Type an arrow key in a web page and see it scrolls the page.
Review URL: http://codereview.chromium.org/159839
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r-- | webkit/glue/webview_impl.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc index dcd5764..0629c31 100644 --- a/webkit/glue/webview_impl.cc +++ b/webkit/glue/webview_impl.cc @@ -693,12 +693,10 @@ bool WebViewImpl::AutocompleteHandleKeyEvent(const WebKeyboardEvent& event) { return false; if (autocomplete_popup_->handleKeyEvent(MakePlatformKeyboardEvent(event))) { -#if defined(OS_WIN) || defined(OS_LINUX) // We need to ignore the next Char event after this otherwise pressing // enter when selecting an item in the menu will go to the page. if (WebInputEvent::RawKeyDown == event.type) suppress_next_keypress_event_ = true; -#endif return true; } @@ -836,11 +834,7 @@ bool WebViewImpl::KeyEventDefault(const WebKeyboardEvent& event) { break; } -#if defined(OS_WIN) || defined(OS_LINUX) case WebInputEvent::RawKeyDown: { -#else - case WebInputEvent::KeyDown: { -#endif if (event.modifiers == WebInputEvent::ControlKey) { switch (event.windowsKeyCode) { case 'A': |