Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit 14f76af

Browse files
committed
fix shift+enter issue reported on maillist
1 parent bb0d1b4 commit 14f76af

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/lib/fcitx/ime.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,6 +1720,7 @@ INPUT_RETURN_VALUE FcitxStandardKeyBlocker(FcitxInputState* input, FcitxKeySym k
17201720
|| FcitxHotkeyIsHotkeyCursorMove(key, state)
17211721
|| FcitxHotkeyIsHotKey(key, state, FCITX_SHIFT_SPACE)
17221722
|| FcitxHotkeyIsHotKey(key, state, FCITX_TAB)
1723+
|| FcitxHotkeyIsHotKey(key, state, FCITX_SHIFT_ENTER)
17231724
))
17241725
return IRV_DO_NOTHING;
17251726
else

src/lib/fcitx/keys.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,5 +285,11 @@ FcitxHotkey FCITX_SHIFT_SPACE[2] = {
285285
{NULL, 0, 0},
286286
};
287287

288+
FCITX_EXPORT_API
289+
FcitxHotkey FCITX_SHIFT_ENTER[2] = {
290+
{NULL, FcitxKey_Return, FcitxKeyState_Shift},
291+
{NULL, FcitxKey_KP_Enter, FcitxKeyState_Shift},
292+
};
293+
288294

289295
// kate: indent-mode cstyle; space-indent on; indent-width 0;

src/lib/fcitx/keys.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ extern "C" {
6060
extern FcitxHotkey FCITX_SEMICOLON[2];
6161
extern FcitxHotkey FCITX_SPACE[2];
6262
extern FcitxHotkey FCITX_SHIFT_SPACE[2];
63+
extern FcitxHotkey FCITX_SHIFT_ENTER[2];
6364
extern FcitxHotkey FCITX_TAB[2];
6465
extern FcitxHotkey FCITX_COMMA[2];
6566
extern FcitxHotkey FCITX_PERIOD[2];

0 commit comments

Comments
 (0)