From 6d885dee5e3a9fc7316c901542eec21e39ae1f12 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 2 Feb 2021 14:17:00 +0200 Subject: 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. --- src/ui/widget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ui/widget.h') 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 { #define wrapText_WidgetFlag iBit64(36) #define borderTop_WidgetFlag iBit64(37) #define overflowScrollable_WidgetFlag iBit64(38) +#define focusRoot_WidgetFlag iBit64(39) enum iWidgetAddPos { back_WidgetAddPos, -- cgit v1.2.3