Skip to content

Commit ee43a58

Browse files
committed
fix ctrl+c/ctrl+v bug #11
Please enter the commit message for your changes. Lines starting
1 parent c1eb508 commit ee43a58

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

python/input_methods/hallelujah/ime_hallelujah.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ def filterKeyDown(self, keyEvent):
106106
if keyEvent.isKeyDown(VK_MENU):
107107
return False
108108

109-
# 如果按下的是 Ctrl 鍵本身
110-
if keyEvent.keyCode == VK_CONTROL:
111-
return True
109+
# 如果按下的不是 ctrl+` 则输入法不做处理
110+
if keyEvent.isKeyDown(VK_CONTROL) and keyEvent.keyCode != VK_OEM_3:
111+
return False
112112

113113
if keyEvent.isChar() and chr(keyEvent.charCode).isalpha():
114114
return True
@@ -229,8 +229,6 @@ def onKeyDown(self, keyEvent):
229229
self.showIPA = not self.showIPA
230230
self.inputWithCandidates(self.compositionString)
231231
return True # Key handled, prevent further processing
232-
if keyEvent.isKeyDown(VK_CONTROL) and keyEvent.keyCode != VK_OEM_3:
233-
return False
234232

235233
# print('halle keyEvent, charCode: ', keyEvent.charCode, '-- keyCode: ', keyEvent.keyCode)
236234
charStr = chr(keyEvent.charCode)

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.13
1+
1.3.14

0 commit comments

Comments
 (0)