Swap buttons with primary mouse button instead of secondary
This commit is contained in:
@@ -503,7 +503,7 @@ KeyboardLayoutView::MessageReceived(BMessage* message)
|
|||||||
int32 buttons;
|
int32 buttons;
|
||||||
if (!message->IsSourceRemote()
|
if (!message->IsSourceRemote()
|
||||||
&& message->FindInt32("buttons", &buttons) == B_OK
|
&& message->FindInt32("buttons", &buttons) == B_OK
|
||||||
&& (buttons & B_SECONDARY_MOUSE_BUTTON) != 0
|
&& (buttons & B_PRIMARY_MOUSE_BUTTON) != 0
|
||||||
&& message->FindInt32("key", &keyCode) == B_OK) {
|
&& message->FindInt32("key", &keyCode) == B_OK) {
|
||||||
// switch keys if the dropped object came from us
|
// switch keys if the dropped object came from us
|
||||||
Key* key = _KeyForCode(keyCode);
|
Key* key = _KeyForCode(keyCode);
|
||||||
|
|||||||
Reference in New Issue
Block a user