Skip to content

Commit

Permalink
add support for wheel left / right in MouseClick
Browse files Browse the repository at this point in the history
  • Loading branch information
phil294 committed Feb 27, 2023
1 parent 9c145a6 commit 85a2cd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cmd/x11/mouse/mouse-click.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class Cmd::X11::Mouse::MouseClick < Cmd::Base
when "middle", "m" then XDo::Button::Middle
when "wheelup", "wu" then XDo::Button::ScrollUp
when "wheeldown", "wd" then XDo::Button::ScrollDown
when "wheelleft", "wl" then XDo::Button::ScrollLeft
when "wheelright", "wr" then XDo::Button::ScrollRight
when "xbutton1", "x1" then XDo::Button::Button8
when "xbutton2", "x2" then XDo::Button::Button9
else XDo::Button::Left
Expand Down

0 comments on commit 85a2cd8

Please sign in to comment.