summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-02 14:17:00 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-02 14:17:00 +0200
commit6d885dee5e3a9fc7316c901542eec21e39ae1f12 (patch)
tree2b8a2acb393329317e975d4294f28a5a34967d9a /src/ui/widget.h
parentec82863a833d3533381dddbb170a8505a24e159d (diff)
Improved focus switching for dialogs
Widgets can now be defined as being the "focus root", i.e., the topmost widget under which focus switching happens. Normally this is the window root widget, but dialogs use this flag to confine focus switching inside the dialog. InputWidget in Overwrite mode will focus switch to the next focusable widget when the text field becomes full.
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h
index e40b333b..79f68b3c 100644
--- a/src/ui/widget.h
+++ b/src/ui/widget.h
@@ -90,6 +90,7 @@ enum iWidgetFlag {
90#define wrapText_WidgetFlag iBit64(36) 90#define wrapText_WidgetFlag iBit64(36)
91#define borderTop_WidgetFlag iBit64(37) 91#define borderTop_WidgetFlag iBit64(37)
92#define overflowScrollable_WidgetFlag iBit64(38) 92#define overflowScrollable_WidgetFlag iBit64(38)
93#define focusRoot_WidgetFlag iBit64(39)
93 94
94enum iWidgetAddPos { 95enum iWidgetAddPos {
95 back_WidgetAddPos, 96 back_WidgetAddPos,