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