fix: 修复在 Shift 键不是连续的情况下也会打开 Find Everywhere 的问题 (#18)

This commit is contained in:
hstyi
2025-01-07 11:49:23 +08:00
committed by hstyi
parent 9d6fd7871b
commit 550ad85415
2 changed files with 2 additions and 1 deletions

View File

@@ -143,6 +143,8 @@ class TermoraFrame : JFrame() {
.actionPerformed(ActionEvent(rootPane, ActionEvent.ACTION_PERFORMED, StringUtils.EMPTY))
}
lastTime = now
} else if (e.keyCode != KeyEvent.VK_SHIFT) { // 如果不是 Shift 键,那么就阻断了连续性,重置时间
lastTime = -1
}
return false
}