* 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:
@@ -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.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -1476,16 +1476,15 @@ InputServer::_UpdateMouseAndKeys(EventList& events)
|
|||||||
if (event->FindInt8("byte", (int8*)&byte) < B_OK)
|
if (event->FindInt8("byte", (int8*)&byte) < B_OK)
|
||||||
byte = 0;
|
byte = 0;
|
||||||
|
|
||||||
if (((fKeyInfo.modifiers & B_COMMAND_KEY) != 0 && byte == ' ')
|
if ((((fKeyInfo.modifiers & B_COMMAND_KEY) != 0 && byte == ' ')
|
||||||
|| byte == B_HANKAKU_ZENKAKU) {
|
|| byte == B_HANKAKU_ZENKAKU)
|
||||||
if (SetNextMethod(!(fKeyInfo.modifiers & B_SHIFT_KEY))
|
&& SetNextMethod((fKeyInfo.modifiers & B_SHIFT_KEY) == 0)
|
||||||
== B_OK) {
|
== B_OK) {
|
||||||
// this event isn't sent to the user
|
// this event isn't sent to the user
|
||||||
events.RemoveItemAt(index);
|
events.RemoveItemAt(index);
|
||||||
delete event;
|
delete event;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user