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:
anevilyak 2012-03-31 02:19:48 +00:00 committed by Alexandre Deckner
parent ae5b937ac2
commit 6c086bdf6a
1 changed files with 3 additions and 2 deletions

View File

@ -104,8 +104,9 @@ TextViewCompleter::Filter(BMessage* message, BHandler** target)
{
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;
}