Skip to content

Commit

Permalink
Update search-bar.jelly
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Aug 10, 2022
1 parent 9bec29f commit f6daa76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/resources/lib/layout/search-bar.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ THE SOFTWARE.
<st:attribute name="id" />
<st:attribute name="autofocus" />
<st:attribute name="clazz" />
<st:attribute name="useKeyboardShortcut" />
<st:attribute name="hasKeyboardShortcut">
If false the default keyboard shortcut for the input is disabled. Defaults to true.
</st:attribute>
</st:documentation>

<div class="jenkins-search ${attrs.clazz}">
Expand All @@ -47,7 +49,7 @@ THE SOFTWARE.
autocorrect="off"
autocapitalize="off"
spellcheck="false" />
<j:if test="${attrs.useKeyboardShortcut != 'false'}">
<j:if test="${attrs.hasKeyboardShortcut != 'false'}">
<div class="jenkins-search__shortcut" tooltip="${%Press / on your keyboard to focus}">
<l:icon src="symbol-search-shortcut" />
</div>
Expand Down

0 comments on commit f6daa76

Please sign in to comment.