Skip to content

Commit 72729ac

Browse files
authored
fix arrow keys printing 'a'
1 parent e3ada8f commit 72729ac

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/backend.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,14 @@ class $modify(CCIMEDispatcher) {
432432
if (!io.WantCaptureKeyboard) {
433433
CCIMEDispatcher::dispatchInsertText(text, len, key);
434434
}
435+
436+
switch (key) {
437+
case KEY_Left:
438+
case KEY_Right:
439+
return;
440+
default: break;
441+
}
442+
435443
std::string str(text, len);
436444
io.AddInputCharactersUTF8(str.c_str());
437445
}
@@ -549,4 +557,4 @@ class $modify(CCKeyboardDispatcher) {
549557
}
550558
#endif
551559
};
552-
#endif
560+
#endif

0 commit comments

Comments
 (0)