summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-05 08:40:53 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-05 08:40:53 +0200
commit32cbf877ac137b28eb41a9084717707907c02d94 (patch)
treedb971de78c1869a2c3a713080aa6222003e946c6 /src/ui/widget.h
parent31312b7a2e51a87a41bf777b6af135329927460d (diff)
Handling keys while navigating via home row
When navigating via home row, ensure that other widgets will not trigger when keys are pressed. The document is given keyboard focus even though it is not flagged as focusable, to make sure it gets to handle all the keys first. On macOS, disable all native menu items that have a home row keyboard shortcut. Also on macOS, disable all native menus when changing bindings. IssueID #419
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h
index 4025f5c5..57088c07 100644
--- a/src/ui/widget.h
+++ b/src/ui/widget.h
@@ -302,7 +302,8 @@ void scrollInfo_Widget (const iWidget *, iWidgetScrollInfo *inf
302 302
303int backgroundFadeColor_Widget (void); 303int backgroundFadeColor_Widget (void);
304 304
305void setFocus_Widget (iWidget *); 305void setFocus_Widget (iWidget *); /* widget must be flagged `focusable` */
306void setKeyboardGrab_Widget (iWidget *); /* sets focus on any widget */
306iWidget * focus_Widget (void); 307iWidget * focus_Widget (void);
307void setHover_Widget (iWidget *); 308void setHover_Widget (iWidget *);
308iWidget * hover_Widget (void); 309iWidget * hover_Widget (void);