mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
Remove unused return value of ToolWindowManagerImpl.dispatchKeyEvent
GitOrigin-RevId: 3691187f4dc81b91d148922b54aebeeedefa0d1c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
662dc441a6
commit
ec91039626
@@ -396,31 +396,31 @@ open class ToolWindowManagerImpl @NonInjectable @TestOnly internal constructor(
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
private fun dispatchKeyEvent(e: KeyEvent): Boolean {
|
||||
private fun dispatchKeyEvent(e: KeyEvent) {
|
||||
if ((e.keyCode != KeyEvent.VK_CONTROL) && (
|
||||
e.keyCode != KeyEvent.VK_ALT) && (e.keyCode != KeyEvent.VK_SHIFT) && (e.keyCode != KeyEvent.VK_META)) {
|
||||
if (e.modifiers == 0) {
|
||||
resetHoldState()
|
||||
}
|
||||
return false
|
||||
return
|
||||
}
|
||||
|
||||
if (e.id != KeyEvent.KEY_PRESSED && e.id != KeyEvent.KEY_RELEASED) {
|
||||
return false
|
||||
return
|
||||
}
|
||||
|
||||
val parent = e.component?.let { ComponentUtil.findUltimateParent(it) }
|
||||
if (parent is IdeFrame) {
|
||||
if ((parent as IdeFrame).project !== project) {
|
||||
resetHoldState()
|
||||
return false
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
val vks = getActivateToolWindowVKsMask()
|
||||
if (vks == 0) {
|
||||
resetHoldState()
|
||||
return false
|
||||
return
|
||||
}
|
||||
|
||||
val mouseMask = InputEvent.BUTTON1_DOWN_MASK or InputEvent.BUTTON2_DOWN_MASK or InputEvent.BUTTON3_DOWN_MASK
|
||||
@@ -434,7 +434,6 @@ open class ToolWindowManagerImpl @NonInjectable @TestOnly internal constructor(
|
||||
resetHoldState()
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
private fun resetHoldState() {
|
||||
|
||||
Reference in New Issue
Block a user