mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 02:40:59 +00:00
fixed: ipad issue with backspace
This commit is contained in:
1 parent
46bab97b49
commit
76ba6a4e64
1 file changed
+5
@@ -2698,6 +2698,11 @@ var _CPCopyPlaceholder = '-';
|
||||
if (_isComposing)
|
||||
return;
|
||||
|
||||
// This is a safety net. The 'input' event fires for deletions too.
|
||||
// We only want to handle this event for actual insertions. Deletions are
|
||||
// handled by the standard key binding mechanism (deleteBackward:).
|
||||
if (e.inputType && e.inputType.startsWith('delete')) {
|
||||
// It was a deletion. Ensure the native field is empty and stop processing.
|
||||
_CPNativeInputField.innerHTML = '';
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user