mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-11 11:07:07 +00:00
deadkey backspace safari fix
This commit is contained in:
1 parent
0bfd5fa9a3
commit
d888bcd473
1 file changed
+8
-1
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user