[BlackBerry] Input processing mode should be cancelled when processing hot keys
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Mar 2012 16:56:57 +0000 (16:56 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Mar 2012 16:56:57 +0000 (16:56 +0000)
https://bugs.webkit.org/show_bug.cgi?id=81348

Patch by Mike Fenton <mifenton@rim.com> on 2012-03-16
Reviewed by Rob Buis.

Don't suppress IMF notifications if we are handling
the event as a hotkey.

Reviewed Internally by Nima Ghanavatian.

* WebCoreSupport/EditorClientBlackBerry.cpp:
(WebCore::EditorClientBlackBerry::handleKeyboardEvent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111019 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/blackberry/ChangeLog
Source/WebKit/blackberry/WebCoreSupport/EditorClientBlackBerry.cpp

index 8bb4d1a95a5cac8f6b081fdb53e57dd49b8b278d..d90a4be6137fc780b3742b75efd07318364d9231 100644 (file)
@@ -1,3 +1,18 @@
+2012-03-16  Mike Fenton  <mifenton@rim.com>
+
+        [BlackBerry] Input processing mode should be cancelled when processing hot keys
+        https://bugs.webkit.org/show_bug.cgi?id=81348
+
+        Reviewed by Rob Buis.
+
+        Don't suppress IMF notifications if we are handling
+        the event as a hotkey.
+
+        Reviewed Internally by Nima Ghanavatian.
+
+        * WebCoreSupport/EditorClientBlackBerry.cpp:
+        (WebCore::EditorClientBlackBerry::handleKeyboardEvent):
+
 2012-03-16  Robin Cao  <robin.cao@torchmobile.com.cn>
 
         [BlackBerry] Can not open certain links from bridge applications
index ff92bd91b4c8726fa1b7bab6ba29e58df9b4f4aa..c1002361de32f4e30b6c43367c9d51de14aa36c9 100644 (file)
@@ -464,6 +464,8 @@ void EditorClientBlackBerry::handleKeyboardEvent(KeyboardEvent* event)
     String commandName = interpretKeyEvent(event);
 
     if (!commandName.isEmpty()) {
+        // Hot key handling. Cancel processing mode.
+        m_webPagePrivate->m_inputHandler->setProcessingChange(false);
         if (frame->editor()->command(commandName).execute())
             event->setDefaultHandled();
         return;