[haiku-webkit-commits] r585 - webkit/trunk/WebKit/haiku/WebPositive/autocompletion

  • From: noreply@xxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Sat, 31 Mar 2012 04:19:50 +0200 (CEST)

Author: anevilyak
Date: Sat Mar 31 04:19:48 2012
New Revision: 585
URL: http://webpositive.haiku-os.org/changeset/585

Log:
Don't try to filter any of these keys if modifiers are pressed. Fixes
Web+ eating things like the workspace switching shortcuts if the URL input
group happened to have focus.

Modified:
   webkit/trunk/WebKit/haiku/WebPositive/autocompletion/TextViewCompleter.cpp

Modified: 
webkit/trunk/WebKit/haiku/WebPositive/autocompletion/TextViewCompleter.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/WebPositive/autocompletion/TextViewCompleter.cpp  
Sun Feb 19 14:36:56 2012        (r584)
+++ webkit/trunk/WebKit/haiku/WebPositive/autocompletion/TextViewCompleter.cpp  
Sat Mar 31 04:19:48 2012        (r585)
@@ -104,8 +104,9 @@
 {
        const char* bytes;
        int32 modifiers;
-       if (!target || message->FindString("bytes", &bytes) != B_OK
-               || message->FindInt32("modifiers", &modifiers) != B_OK) {
+       if ((!target || message->FindString("bytes", &bytes) != B_OK
+                       || message->FindInt32("modifiers", &modifiers) != B_OK)
+               || modifiers != 0) {
                return B_DISPATCH_MESSAGE;
        }
 

Other related posts: