deadkey backspace safari fix

This commit is contained in:
daboe01 committed 2015-06-17 20:10:19 +02:00
1 parent 0bfd5fa9a3
commit d888bcd473
1 file changed
+8 -1
+8 -1
View File
@@ -2134,9 +2134,16 @@ var _CPCopyPlaceholder = '-';
{
// filter out the shift-up, cursor keys and friends used to access the deadkeys
// fixme: e.which is depreciated(?) -> find a better way to identify the modifier-keyups
if (e.which != 8 && e.which < 27 || e.which == 91 || e.which == 93) // include apple command keys
if (e.which != 8 && e.which != 13 && e.which < 27 || e.which == 91 || e.which == 93) // include apple command keys
return;
if(_CPNativeInputFieldActive && _CPNativeInputField.innerHTML.slice(-1) == ">") // exit when safari starts inserting tags
{
_CPNativeInputField.innerHTML=''
[self cancelCurrentNativeInputSession];
return;
}
_CPNativeInputFieldKeyUpCalled = YES;
var currentFirstResponder = [[CPApp mainWindow] firstResponder]