1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Autofocus advanced search text edit input

This commit is contained in:
Jermolene 2019-02-06 17:53:00 +00:00
parent 22fe4451c8
commit 94f143bf64
4 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ caption: {{$:/language/Search/Filter/Caption}}
<<lingo Filter/Hint>> <<lingo Filter/Hint>>
<div class="tc-search tc-advanced-search"> <div class="tc-search tc-advanced-search">
<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input"/> <$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]"><$transclude/></$list> <$list filter="[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]"><$transclude/></$list>
</div> </div>

View File

@ -8,7 +8,7 @@ caption: {{$:/language/Search/Shadows/Caption}}
<<lingo Shadows/Hint>> <<lingo Shadows/Hint>>
<div class="tc-search"> <div class="tc-search">
<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input"/> <$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/>
<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> <$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
<$button class="tc-btn-invisible"> <$button class="tc-btn-invisible">
<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/> <$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/>

View File

@ -8,7 +8,7 @@ caption: {{$:/language/Search/Standard/Caption}}
<<lingo Standard/Hint>> <<lingo Standard/Hint>>
<div class="tc-search"> <div class="tc-search">
<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input"/> <$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/>
<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> <$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
<$button class="tc-btn-invisible"> <$button class="tc-btn-invisible">
<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/> <$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/>

View File

@ -8,7 +8,7 @@ caption: {{$:/language/Search/System/Caption}}
<<lingo System/Hint>> <<lingo System/Hint>>
<div class="tc-search"> <div class="tc-search">
<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input"/> <$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/>
<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> <$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
<$button class="tc-btn-invisible"> <$button class="tc-btn-invisible">
<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/> <$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/>