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. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@585 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
committed by
Alexandre Deckner
parent
ae5b937ac2
commit
6c086bdf6a
@@ -104,8 +104,9 @@ TextViewCompleter::Filter(BMessage* message, BHandler** target)
|
|||||||
{
|
{
|
||||||
const char* bytes;
|
const char* bytes;
|
||||||
int32 modifiers;
|
int32 modifiers;
|
||||||
if (!target || message->FindString("bytes", &bytes) != B_OK
|
if ((!target || message->FindString("bytes", &bytes) != B_OK
|
||||||
|| message->FindInt32("modifiers", &modifiers) != B_OK) {
|
|| message->FindInt32("modifiers", &modifiers) != B_OK)
|
||||||
|
|| modifiers != 0) {
|
||||||
return B_DISPATCH_MESSAGE;
|
return B_DISPATCH_MESSAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user