Be more specific about how we check the modifiers mask.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@586 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
parent
6c086bdf6a
commit
b4bab54a16
@ -106,7 +106,8 @@ TextViewCompleter::Filter(BMessage* message, BHandler** target)
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user