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

  • From: noreply@xxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Sat, 31 Mar 2012 20:17:02 +0200 (CEST)

Author: anevilyak
Date: Sat Mar 31 20:17:01 2012
New Revision: 586
URL: http://webpositive.haiku-os.org/changeset/586

Log:
Be more specific about how we check the modifiers mask.

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  
Sat Mar 31 04:19:48 2012        (r585)
+++ webkit/trunk/WebKit/haiku/WebPositive/autocompletion/TextViewCompleter.cpp  
Sat Mar 31 20:17:01 2012        (r586)
@@ -106,7 +106,8 @@
        int32 modifiers;
        if ((!target || message->FindString("bytes", &bytes) != B_OK
                        || message->FindInt32("modifiers", &modifiers) != B_OK)
-               || modifiers != 0) {
+               || (modifiers & (B_CONTROL_KEY | B_COMMAND_KEY | B_OPTION_KEY
+                       | B_SHIFT_KEY)) != 0) {
                return B_DISPATCH_MESSAGE;
        }
 

Other related posts:

  • » [haiku-webkit-commits] r586 - webkit/trunk/WebKit/haiku/WebPositive/autocompletion - noreply