From 7151e7827a52497ae4f8f08ae805d961b57ec4aa Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 1 Feb 2014 07:05:25 +0000 Subject: [PATCH] allow tabs to be cycled when focus is in editor --- src/static/js/ace2_inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 6c4d9b4f..07a9b971 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -3750,7 +3750,7 @@ function Ace2Inner(){ specialHandled = true; } if((evt.which == 36 && evt.ctrlKey == true)){ setScrollY(0); } // Control Home send to Y = 0 - if((evt.which == 33 || evt.which == 34) && type == 'keydown'){ + if((evt.which == 33 || evt.which == 34) && type == 'keydown' && !evt.ctrlKey){ evt.preventDefault(); // This is required, browsers will try to do normal default behavior on page up / down and the default behavior SUCKS