summaryrefslogtreecommitdiff
path: root/src/Fl_Menu.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-11-17 21:10:01 +0100
committerGitHub <noreply@github.com>2025-11-17 21:10:01 +0100
commitfa65cd63214030011d7ac0a18818c644aff05750 (patch)
tree8d5b7c129955a258897a14816cda802778c36910 /src/Fl_Menu.cxx
parentd623ad08a9e7d91e8b0599189bdb57e6ee1dcc94 (diff)
Add pen/stylus/tablet API and driver for macOS (#1326)
* define the pen/tablet support API * add pen event handler stub as a fallback * add pen device test "penpal". * Add macOS pen/stylus/tablet driver. * Add Oxygen documentation.
Diffstat (limited to 'src/Fl_Menu.cxx')
-rw-r--r--src/Fl_Menu.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx
index a91666ad3..f938f50d3 100644
--- a/src/Fl_Menu.cxx
+++ b/src/Fl_Menu.cxx
@@ -886,7 +886,8 @@ int menuwindow::handle_part1(int e) {
int item; const Fl_Menu_Item* m = mw.menu->find_shortcut(&item);
if (m) {
setitem(m, mymenu, item);
- if (!m->submenu()) pp.state = DONE_STATE;
+ if (!m->submenu())
+ pp.state = DONE_STATE;
return 1;
}
}