summaryrefslogtreecommitdiffstats
path: root/stfl/dllist.stfl
diff options
context:
space:
mode:
authorDennis van der Schagt <dennisschagt@gmail.com>2020-04-17 14:40:00 +0200
committerDennis van der Schagt <dennisschagt@gmail.com>2020-04-18 12:11:02 +0200
commit7d825f3ee9443237f55be41dbe6b92e236a832db (patch)
tree99070ca753dfcd29c22379204c1d23494f90e836 /stfl/dllist.stfl
parent00b400ab47fa6801934575c04cebaaeee4829399 (diff)
Allow binding TAB key to operations
Normally, STFL switches focus between widgets when TAB is pressed. It does not pass on the TAB event so we cannot bind any actions to it. By registering an `on_TAB` handler, STFL directly returns the TAB event without processing it. Most of our STFL forms only have one widget which can be focussed. For those forms, removing the STFL internal TAB handling does not change the behavior. The only exception is the `filebrowser.stfl` form (used by `FileBrowser` and `DirBrowser`). That form allowed switching between the directory listing and the filename at the bottom.
Diffstat (limited to 'stfl/dllist.stfl')
-rw-r--r--stfl/dllist.stfl1
1 files changed, 1 insertions, 0 deletions
diff --git a/stfl/dllist.stfl b/stfl/dllist.stfl
index 0a9d3b9b..2123817f 100644
--- a/stfl/dllist.stfl
+++ b/stfl/dllist.stfl
@@ -7,6 +7,7 @@ vbox
@bind_page_down[bind_page_down]:**
@bind_home[bind_home]:**
@bind_end[bind_end]:**
+ @on_TAB:"TAB"
label#info[title]
text[head]:"Queue"
.expand:h