Swap buttons with primary mouse button instead of secondary

This commit is contained in:
John Scipione 2013-05-12 16:54:59 -04:00
parent 7e9644053f
commit a62422fc9c

View File

@ -503,7 +503,7 @@ KeyboardLayoutView::MessageReceived(BMessage* message)
int32 buttons;
if (!message->IsSourceRemote()
&& message->FindInt32("buttons", &buttons) == B_OK
&& (buttons & B_SECONDARY_MOUSE_BUTTON) != 0
&& (buttons & B_PRIMARY_MOUSE_BUTTON) != 0
&& message->FindInt32("key", &keyCode) == B_OK) {
// switch keys if the dropped object came from us
Key* key = _KeyForCode(keyCode);