Skip to content

Commit

Permalink
Swap click 2 and click 3
Browse files Browse the repository at this point in the history
This makes the mouse buttons match the original keynav.
  • Loading branch information
lesderid authored Dec 23, 2021
1 parent 46f5144 commit fa83b90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/keynavish/commands.d
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,13 @@ private void doubleClick(string button)
inputs[1].mi.dwFlags = MOUSEEVENTF_LEFTUP;
break;
case "2":
inputs[0].mi.dwFlags = MOUSEEVENTF_RIGHTDOWN;
inputs[1].mi.dwFlags = MOUSEEVENTF_RIGHTUP;
break;
case "3":
inputs[0].mi.dwFlags = MOUSEEVENTF_MIDDLEDOWN;
inputs[1].mi.dwFlags = MOUSEEVENTF_MIDDLEUP;
break;
case "3":
inputs[0].mi.dwFlags = MOUSEEVENTF_RIGHTDOWN;
inputs[1].mi.dwFlags = MOUSEEVENTF_RIGHTUP;
break;
default:
showError("Invalid mouse button: " ~ button);
break;
Expand Down

0 comments on commit fa83b90

Please sign in to comment.