Use keydown instead of keypress on Firefox.
This commit is contained in:
parent
f35d3456cf
commit
2be873e3c7
|
@ -3708,8 +3708,8 @@ function Ace2Inner(){
|
|||
return; // This stops double enters in Opera but double Tabs still show on single tab keypress, adding keyCode == 9 to this doesn't help as the event is fired twice
|
||||
}
|
||||
var specialHandled = false;
|
||||
var isTypeForSpecialKey = ((browser.msie || browser.safari || browser.chrome) ? (type == "keydown") : (type == "keypress"));
|
||||
var isTypeForCmdKey = ((browser.msie || browser.safari || browser.chrome) ? (type == "keydown") : (type == "keypress"));
|
||||
var isTypeForSpecialKey = ((browser.msie || browser.safari || browser.chrome || browser.firefox) ? (type == "keydown") : (type == "keypress"));
|
||||
var isTypeForCmdKey = ((browser.msie || browser.safari || browser.chrome || browser.firefox) ? (type == "keydown") : (type == "keypress"));
|
||||
var stopped = false;
|
||||
|
||||
inCallStackIfNecessary("handleKeyEvent", function()
|
||||
|
|
Loading…
Reference in New Issue