Skip to content

Commit

Permalink
Improve arrow key handling when using cursor to select candidate string.
Browse files Browse the repository at this point in the history
  • Loading branch information
PCMan committed Mar 2, 2016
1 parent aa83e7f commit 1be4c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/input_methods/chewing/chewing_ime.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,15 +367,15 @@ def onKeyDown(self, keyEvent):
if keyCode == VK_LEFT: # 游標左移
if candCursor > 0:
candCursor -= 1
ignoreKey = keyHandled = True
ignoreKey = keyHandled = True
elif keyCode == VK_UP: # 游標上移
if candCursor >= cfg.candPerRow:
candCursor -= cfg.candPerRow
ignoreKey = keyHandled = True
elif keyCode == VK_RIGHT: # 游標右移
if (candCursor + 1) < candCount:
candCursor += 1
ignoreKey = keyHandled = True
ignoreKey = keyHandled = True
elif keyCode == VK_DOWN: # 游標下移
if (candCursor + cfg.candPerRow) < candCount:
candCursor += cfg.candPerRow
Expand Down

0 comments on commit 1be4c03

Please sign in to comment.