Skip to content

Commit 8039433

Browse files
committed
[editor] X-Ray mode: handle Ctrl+*, Ctrl, #SCL-23847 fixed
1 parent 9ac3727 commit 8039433

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scala/codeInsight/src/org/jetbrains/plugins/scala/codeInsight/hints/ScalaEditorFactoryListener.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ class ScalaEditorFactoryListener extends EditorFactoryListener {
126126

127127
override def keyReleased(e: KeyEvent): Unit = {
128128
xRayMode = false
129+
if (e.getKeyCode != ModifierKey) {
130+
firstKeyPressTime = 0
131+
}
129132
keyPressEvent = null
130133
longDelay.stop()
131134
shortDelay.stop()

0 commit comments

Comments
 (0)