mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Fixing combo boxes getting out-of-sync with NVDA.
Combo boxes need to be special cased like text input. Also, Escape is a reserved button in NVDA, so I added Enter as a way to "submit and move up a level" in addition to escape, so these boxes can be edited while NVDA is on.
This commit is contained in:
@@ -452,9 +452,10 @@ blocklyApp.TreeService = ng.core.Class({
|
||||
return;
|
||||
}
|
||||
|
||||
if (document.activeElement.tagName == 'INPUT') {
|
||||
// For input fields, only Esc and Tab keystrokes are handled specially.
|
||||
if (e.keyCode == 27 || e.keyCode == 9) {
|
||||
if (document.activeElement.tagName == 'INPUT' ||
|
||||
document.activeElement.tagName == 'SELECT') {
|
||||
// For input fields, Esc, Enter, and Tab keystrokes are handled specially.
|
||||
if (e.keyCode == 9 || e.keyCode == 13 || e.keyCode == 27) {
|
||||
// Return the focus to the workspace tree containing the input field.
|
||||
document.getElementById(treeId).focus();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user