mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-20 01:02:02 +00:00
fix: prompt input focusing when opening chat toolwindow (fixes #691)
This commit is contained in:
parent
2df9274fff
commit
0cfb8664df
2 changed files with 5 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import com.intellij.icons.AllIcons
|
|||
import com.intellij.openapi.actionSystem.ActionPlaces
|
||||
import com.intellij.openapi.actionSystem.AnAction
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent
|
||||
import com.intellij.openapi.application.invokeLater
|
||||
import com.intellij.openapi.components.service
|
||||
import com.intellij.openapi.editor.SelectionModel
|
||||
import com.intellij.openapi.observable.properties.AtomicBooleanProperty
|
||||
|
|
@ -81,8 +82,9 @@ class UserInputPanel(
|
|||
}
|
||||
|
||||
override fun requestFocus() {
|
||||
promptTextField.requestFocus()
|
||||
promptTextField.requestFocusInWindow()
|
||||
invokeLater {
|
||||
promptTextField.requestFocusInWindow()
|
||||
}
|
||||
}
|
||||
|
||||
override fun paintComponent(g: Graphics) {
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ class SuggestionsPopupManager(
|
|||
listModel.addAll(suggestions)
|
||||
list.revalidate()
|
||||
list.repaint()
|
||||
selectNext()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue