Skip to content

Commit 6a84691

Browse files
committed
fix backspace ignore
1 parent d1b18c6 commit 6a84691

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

MacTcode.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@
712712
"@executable_path/../Frameworks",
713713
);
714714
MACOSX_DEPLOYMENT_TARGET = 11.0;
715-
MARKETING_VERSION = 0.12.0;
715+
MARKETING_VERSION = 0.12.1;
716716
ONLY_ACTIVE_ARCH = NO;
717717
PRODUCT_BUNDLE_IDENTIFIER = "jp.mad-p.inputmethod.MacTcode";
718718
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -749,7 +749,7 @@
749749
"@executable_path/../Frameworks",
750750
);
751751
MACOSX_DEPLOYMENT_TARGET = 11.0;
752-
MARKETING_VERSION = 0.12.0;
752+
MARKETING_VERSION = 0.12.1;
753753
PRODUCT_BUNDLE_IDENTIFIER = "jp.mad-p.inputmethod.MacTcode";
754754
PRODUCT_NAME = "$(TARGET_NAME)";
755755
SWIFT_EMIT_LOC_STRINGS = YES;

MacTcode/Tcode/TcodeInputController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class TcodeInputController: IMKInputController, Controller {
9393
baseInputText = ContextClient(client: ClientWrapper(client, bundleId), recent: recentText)
9494

9595
// backspaceIgnoreがある間は、キャンセル用と見なさない
96-
if (backspaceIgnore > 0) {
96+
if (inputEvent.type == .delete && backspaceIgnore > 0) {
9797
backspaceIgnore -= 1
9898
Log.i("Ignore Backspace. Expecting \(backspaceIgnore) more")
9999
return false

0 commit comments

Comments
 (0)