diff options
author | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 13:42:58 +0000 |
---|---|---|
committer | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 13:42:58 +0000 |
commit | 7f7a70fa4b41f770bd40bd82d9f7e2c207125153 (patch) | |
tree | aea3dad224b583d922eec70837ff10f217839f20 /webkit/glue/editor_client_impl.cc | |
parent | 77fcb555e4011b9ef393119d718a041c34339a9c (diff) | |
download | chromium_src-7f7a70fa4b41f770bd40bd82d9f7e2c207125153.zip chromium_src-7f7a70fa4b41f770bd40bd82d9f7e2c207125153.tar.gz chromium_src-7f7a70fa4b41f770bd40bd82d9f7e2c207125153.tar.bz2 |
Reverting r14043, r14188. The fix that I'm reverting needs to be done, but we need to come up with a clean implementation complete with documentation about what the input methods are that we're explicitly testing for.
TBR=ukai@google.com
Review URL: http://codereview.chromium.org/92072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14299 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/editor_client_impl.cc')
-rw-r--r-- | webkit/glue/editor_client_impl.cc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc index 877f0e3..b6a2f37 100644 --- a/webkit/glue/editor_client_impl.cc +++ b/webkit/glue/editor_client_impl.cc @@ -611,31 +611,6 @@ bool EditorClientImpl::handleEditingKeyboardEvent( return true; } - // In WebKit/gtk/WebCoreSupport/EditorClient.cpp, handleKeyboardEvent() - // checks modifiers. If any modifiers (except shift) are pressed or - // no text in the key event, it won't try to insertText to the editor. - // This is necessary to prevent ascii letter from being inserted when a key - // pressed such as Ctrl-<letter>. For example, when Ctrl-L pressed, - // we'll have a KeyDown key event with ctrlKey() == true and text = 'l', - // which will be disambiguated to the following two key events on Gtk. - // RawKeyDown: ctrlKey == true, text = "" - // Char: ctrlKey == true, text = "l". - // For Mac, we'd like to ignore text if Command key (MetaKey) is pressed. - // Note that on Windows, we'll have a Char key event with ctrlKey() == true - // and text = "\x0c". - if (evt->keyEvent()->ctrlKey() || evt->keyEvent()->altKey() || - evt->keyEvent()->metaKey() || evt->keyEvent()->text().isEmpty()) { -#if defined(OS_MACOSX) - // Alt-<key> may produce special characters. - if (!(evt->keyEvent()->altKey() && - evt->keyEvent()->text().length() == 1 && - evt->keyEvent()->text()[0U] >= 0x80)) - return false; -#else - return false; -#endif - } - if (evt->keyEvent()->text().length() == 1) { UChar ch = evt->keyEvent()->text()[0U]; |