mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-30 10:22:03 +00:00
fixed: entering return blocked the nativeinputmanager
This commit is contained in:
1 parent
9f6460ddae
commit
3da5b3a278
1 file changed
+3
@@ -2329,6 +2329,9 @@ var _CPCopyPlaceholder = '-';
|
||||
// fixme: e.which is depreciated(?) -> find a better way to identify the modifier-keyups
|
||||
if (e.which < 27 || e.which == 91 || e.which == 93) // include apple command keys
|
||||
{
|
||||
if (e.which == 13)
|
||||
_CPNativeInputField.innerHTML = '';
|
||||
|
||||
if (_CPNativeInputField.innerHTML.length == 0 || _CPNativeInputField.innerHTML.length > 2) // backspace
|
||||
[self cancelCurrentInputSessionIfNeeded];
|
||||
|
||||
|
||||
Reference in new issue
Block a user