mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-20 09:24:08 +00:00
fix: focus stealing when searching for suggestions
This commit is contained in:
parent
dde0c016e9
commit
f4e8403056
1 changed files with 2 additions and 3 deletions
|
|
@ -65,13 +65,13 @@ class SuggestionsPopupManager(
|
|||
}
|
||||
|
||||
fun selectNext() {
|
||||
list.requestFocus()
|
||||
list.selectNext()
|
||||
list.requestFocus()
|
||||
}
|
||||
|
||||
fun selectPrevious() {
|
||||
list.requestFocus()
|
||||
list.selectPrevious()
|
||||
list.requestFocus()
|
||||
}
|
||||
|
||||
fun updateSuggestions(searchText: String? = null) {
|
||||
|
|
@ -85,7 +85,6 @@ class SuggestionsPopupManager(
|
|||
listModel.addAll(suggestions)
|
||||
list.revalidate()
|
||||
list.repaint()
|
||||
selectNext()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue