mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-12 05:51:28 +00:00
fix: popup focus on tab events
This commit is contained in:
parent
e34a3c40dd
commit
fb3216ebba
1 changed files with 8 additions and 4 deletions
|
|
@ -69,10 +69,6 @@ class CustomTextPaneKeyAdapter(
|
|||
)
|
||||
)
|
||||
return
|
||||
} else if (e.keyChar == '\t') {
|
||||
suggestionsPopupManager.requestFocus()
|
||||
suggestionsPopupManager.selectNext()
|
||||
return
|
||||
} else if (popupVisible) {
|
||||
updateSuggestions()
|
||||
}
|
||||
|
|
@ -88,6 +84,14 @@ class CustomTextPaneKeyAdapter(
|
|||
}
|
||||
}
|
||||
|
||||
override fun keyPressed(e: KeyEvent) {
|
||||
if (e.keyChar == '\t') {
|
||||
suggestionsPopupManager.requestFocus()
|
||||
suggestionsPopupManager.selectNext()
|
||||
e.consume()
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateSuggestions() {
|
||||
CoroutineScope(Dispatchers.Default).launch {
|
||||
runInEdt {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue