Commit 6680f220 authored by manuk's avatar manuk Committed by Commit Bot

[chrome:omnibox] Add access keys for input elements.

Using L and F for query and find input boxes in order to be similar to
browser shortcuts for focusing the omnibox and find dialog respectively.

Using I, D, and P for 'show incomplete results', 'show details', and 'show per
provider' display checkboxes respectively.

Using C, A, and K for 'lock cursor', 'prevent autocomplete', 'keyword mode'
input checkboxes respectively.

Using U for 'current page' dropdown.

Bug: 891303
Change-Id: Id715fb6c3db5787a8e676f2497578128a2810fd9
Reviewed-on: https://chromium-review.googlesource.com/c/1372243
Commit-Queue: manuk hovanesian <manukh@chromium.org>
Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615736}
parent 97141c04
...@@ -202,3 +202,8 @@ tbody:not(:first-of-type) td.cell-provider-and-type .pair-item:first-child { ...@@ -202,3 +202,8 @@ tbody:not(:first-of-type) td.cell-provider-and-type .pair-item:first-child {
.cell-fill-and-inline .overlap-warning { .cell-fill-and-inline .overlap-warning {
color: red; color: red;
} }
.accesskey {
text-decoration: underline;
text-transform: capitalize;
}
...@@ -18,30 +18,30 @@ ...@@ -18,30 +18,30 @@
<template id="omnibox-inputs-template"> <template id="omnibox-inputs-template">
<link rel="stylesheet" href="omnibox.css"> <link rel="stylesheet" href="omnibox.css">
<p> <p>
<input id="input-text" type="text" size="60" placeholder="Enter omnibox input text" autofocus> <input id="input-text" type="text" size="60" placeholder="Enter omnibox input text [alt+shift+l]" accesskey="l" autofocus>
</p> </p>
<p>Input parameters:</p> <p>Input parameters:</p>
<p> <p>
<label> <label>
<input id="lock-cursor-position" type="checkbox"> <input id="lock-cursor-position" type="checkbox" accesskey="c">
Lock cursor position to end of input Lock <span class="accesskey">c</span>ursor position to end of input
</label> </label>
</p> </p>
<p> <p>
<label> <label>
<input id="prevent-inline-autocomplete" type="checkbox"> <input id="prevent-inline-autocomplete" type="checkbox" accesskey="a">
Prevent inline autocomplete Prevent inline <span class="accesskey">a</span>utocomplete
</label> </label>
</p> </p>
<p> <p>
<label> <label>
<input id="prefer-keyword" type="checkbox"> <input id="prefer-keyword" type="checkbox" accesskey="k">
In keyword mode In <span class="accesskey">k</span>eyword mode
</label> </label>
</p> </p>
<p> <p>
Current page context: C<span class="accesskey">u</span>rrent page context:
<select id="page-classification"> <select id="page-classification" accesskey="u">
<option value="0">Invalid spec</option> <option value="0">Invalid spec</option>
<option value="2">about:blank</option> <option value="2">about:blank</option>
<option value="3">user's home page</option> <option value="3">user's home page</option>
...@@ -56,20 +56,20 @@ ...@@ -56,20 +56,20 @@
<p>Display parameters:</p> <p>Display parameters:</p>
<p> <p>
<label> <label>
<input id="show-incomplete-results" type="checkbox"> <input id="show-incomplete-results" type="checkbox" accesskey="i">
Show incomplete results Show <span class="accesskey">i</span>ncomplete results
</label> </label>
</p> </p>
<p> <p>
<label> <label>
<input id="show-details" type="checkbox"> <input id="show-details" type="checkbox" accesskey="d">
Show all details Show all <span class="accesskey">d</span>etails
</label> </label>
</p> </p>
<p> <p>
<label> <label>
<input id="show-all-providers" type="checkbox"> <input id="show-all-providers" type="checkbox" accesskey="p">
Show results per provider, not just merged results Show results per <span class="accesskey">p</span>rovider, not just merged results
</label> </label>
</p> </p>
<div class="section"> <div class="section">
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</div> </div>
<div class="section"> <div class="section">
<input id="filter-text" type="text" size="60" placeholder="Enter filter text (e.g. 'google', 'is:starred', 'not:deletable')" title="Checks each cell individually; i.e. filter text should not span multiple columns. Supports fuzzyness; each character of filter text must be present in the cell, either adjacent to the previous matched character, or at the start of a new word. Words are defined as being delimited by either capital letters, groups of digits, or non alpha characters. E.g. 'abc' matches 'abc', 'a big cat', 'a-bigCat', 'a very big cat', and 'an amBer cat'; but does not match 'abigcat' or 'an amber cat'. 'green rainbow' is matched by 'gre rain', but not by 'gre bow'. One exception is the first character, which may be matched mid-word. E.g. 'een rain' can also match 'green rainbow'. Boolean properties can be searched for via the property name prefixed by 'is:' or 'not:'. Boolean property names are: 'Can Be Default', 'Starred', 'Has Tab Match', 'Del', 'Prev', and 'Done'."> <input id="filter-text" type="text" size="60" placeholder="Enter filter text (e.g. 'google', 'is:star', 'not:del') [alt+shift+f]" accesskey="f" title="Checks each cell individually; i.e. filter text should not span multiple columns. Supports fuzzyness; each character of filter text must be present in the cell, either adjacent to the previous matched character, or at the start of a new word. Words are defined as being delimited by either capital letters, groups of digits, or non alpha characters. E.g. 'abc' matches 'abc', 'a big cat', 'a-bigCat', 'a very big cat', and 'an amBer cat'; but does not match 'abigcat' or 'an amber cat'. 'green rainbow' is matched by 'gre rain', but not by 'gre bow'. One exception is the first character, which may be matched mid-word. E.g. 'een rain' can also match 'green rainbow'. Boolean properties can be searched for via the property name prefixed by 'is:' or 'not:'. Boolean property names are: 'Can Be Default', 'Starred', 'Has Tab Match', 'Del', 'Prev', and 'Done'.">
<label class="toggle left-20"> <label class="toggle left-20">
<input id="filter-hide" type="checkbox"> <input id="filter-hide" type="checkbox">
<span class="toggle-off">Highlight</span> <span class="toggle-off">Highlight</span>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment