From 295eead3c8dc12c5159263e7dbb7e2e0db8fd62a Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Fri, 22 Mar 2024 02:21:59 +0800 Subject: [PATCH] fix: add tabindex so it can be focused --- core/ui/LayoutSwitcher.tid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ui/LayoutSwitcher.tid b/core/ui/LayoutSwitcher.tid index 3bb8cba0b..f0d256294 100644 --- a/core/ui/LayoutSwitcher.tid +++ b/core/ui/LayoutSwitcher.tid @@ -7,7 +7,7 @@ caption: {{$:/language/ControlPanel/LayoutSwitcher/Caption}} \procedure layout-item()
>> - <$link to={{!!title}}> + <$link to={{!!title}} tabindex=<>> ''<$transclude tiddler={{{ [get[icon]] }}}/><$transclude field="name"/>'' - <$transclude field="description"/>
@@ -23,7 +23,7 @@ caption: {{$:/language/ControlPanel/LayoutSwitcher/Caption}} <$keyboard key="((input-up))" actions=<>> <$keyboard key="((input-down))" actions=<>>
- <$list filter=<>> + <$list filter=<> counter="tabIndex"> <% if [{$:/layout}has[text]] %> <$set name="cls" filter="[all[current]field:title{$:/layout}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"> <>