diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-05 08:40:53 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-05 08:40:53 +0200 |
commit | 32cbf877ac137b28eb41a9084717707907c02d94 (patch) | |
tree | db971de78c1869a2c3a713080aa6222003e946c6 /src/ui/widget.h | |
parent | 31312b7a2e51a87a41bf777b6af135329927460d (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.h | 3 |
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 | ||
303 | int backgroundFadeColor_Widget (void); | 303 | int backgroundFadeColor_Widget (void); |
304 | 304 | ||
305 | void setFocus_Widget (iWidget *); | 305 | void setFocus_Widget (iWidget *); /* widget must be flagged `focusable` */ |
306 | void setKeyboardGrab_Widget (iWidget *); /* sets focus on any widget */ | ||
306 | iWidget * focus_Widget (void); | 307 | iWidget * focus_Widget (void); |
307 | void setHover_Widget (iWidget *); | 308 | void setHover_Widget (iWidget *); |
308 | iWidget * hover_Widget (void); | 309 | iWidget * hover_Widget (void); |