From 76ba6a4e64b70926912f18aeba9f64e56f59b51a Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 19 Jul 2025 13:53:28 +0200 Subject: [PATCH] fixed: ipad issue with backspace --- AppKit/CPTextView/CPTextView.j | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 74afe64ea..51ee6d424 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -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; }