Merge pull request #2080 from ether/ignore-ctrl-pageup

allow tabs to be cycled when focus is in editor
This commit is contained in:
John McLear 2014-03-13 00:49:20 +00:00
commit e12093eb19
1 changed files with 1 additions and 1 deletions

View File

@ -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