Skip to content

Commit

Permalink
Require alt key for Advanced/Basic button shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
dannye committed Sep 8, 2024
1 parent 03a9e6a commit 63e5a5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ int OS_Button::handle(int event) {
if (event == FL_PUSH) {
Fl::focus(this);
}
if (event == FL_SHORTCUT && !Fl::event_state(FL_ALT)) return 0;
return Fl_Button::handle(event);
}

Expand Down

0 comments on commit 63e5a5e

Please sign in to comment.