* Fixed style violation (tab before '{' that Jérôme already mentioned), and

merged the two ifs.
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42602 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2011-08-08 21:11:03 +00:00
parent 336835776b
commit 98e30c67df
+9 -10
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2010, Haiku, Inc. All Rights Reserved.
* Copyright 2002-2011, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
@@ -1476,15 +1476,14 @@ InputServer::_UpdateMouseAndKeys(EventList& events)
if (event->FindInt8("byte", (int8*)&byte) < B_OK)
byte = 0;
if (((fKeyInfo.modifiers & B_COMMAND_KEY) != 0 && byte == ' ')
|| byte == B_HANKAKU_ZENKAKU) {
if (SetNextMethod(!(fKeyInfo.modifiers & B_SHIFT_KEY))
== B_OK) {
// this event isn't sent to the user
events.RemoveItemAt(index);
delete event;
continue;
}
if ((((fKeyInfo.modifiers & B_COMMAND_KEY) != 0 && byte == ' ')
|| byte == B_HANKAKU_ZENKAKU)
&& SetNextMethod((fKeyInfo.modifiers & B_SHIFT_KEY) == 0)
== B_OK) {
// this event isn't sent to the user
events.RemoveItemAt(index);
delete event;
continue;
}
break;
}