Skip to content

Commit

Permalink
fix: 修复翻页后,再输入原码或删除原码,输入框中原码未同步显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertyyb committed Sep 11, 2022
1 parent 6bd7351 commit a2720e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Fire/FireInputController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class FireInputController: IMKInputController {
if self.curPage != 1 {
// code被重新设置时,还原页码为1
self.curPage = 1
self.markText()
return
}
NSLog("[FireInputController] original changed: \(self._originalString), refresh window")
Expand Down Expand Up @@ -213,7 +214,7 @@ class FireInputController: IMKInputController {
}
return nil
}

private func escKeyHandler(event: NSEvent) -> Bool? {
// ESC键取消所有输入
if event.keyCode == kVK_Escape, _originalString.count > 0 {
Expand Down

0 comments on commit a2720e5

Please sign in to comment.