Reviewers: einbinder, lushnikov
CL:
https://codereview.chromium.org/2538233004/Message:
Please take a look.
Description:
DevTools: accessibility fix for tab from prompt
TextPrompt used to always consume 'Tab' keys, preventing the use of tab to
navigate from a prompt to checkboxes. This CL makes the handler consume only if
autocomplete is handled.
BUG=668161
Affected files (+1, -4 lines):
M third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
Index: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
index a661c55b58ac966ff1cf71918602b4e3a2820148..195cc51734d4b2d9de97c8e2badf4535db0ae120 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
@@ -609,10 +609,7 @@ UI.TextPrompt = class extends Common.Object {
* @return {boolean}
*/
tabKeyPressed(event) {
- this.acceptAutoComplete();
-
- // Consume the key.
- return true;
+ return this.acceptAutoComplete();
}
/**