From afe3c63cab42d9138973de7747ce82bbdb644c59 Mon Sep 17 00:00:00 2001 From: Sean Lip Date: Fri, 5 Aug 2016 17:26:23 -0700 Subject: [PATCH] Do not intercept keystrokes that include Alt/Ctrl. --- accessible/tree.service.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/accessible/tree.service.js b/accessible/tree.service.js index b6cfcc251..2c9abd56d 100644 --- a/accessible/tree.service.js +++ b/accessible/tree.service.js @@ -235,7 +235,10 @@ blocklyApp.TreeService = ng.core return; } - if (document.activeElement.tagName == 'INPUT') { + if (e.altKey || e.ctrlKey) { + // Do not intercept combinations such as Alt+Home. + return; + } else if (document.activeElement.tagName == 'INPUT') { // For input fields, only Esc and Tab keystrokes are handled specially. if (e.keyCode == 27 || e.keyCode == 9) { // For Esc and Tab keys, the focus is removed from the input field.