Skip to content

feat: add focus actions for Agent and Chat tool window inputs#1227

Open
SunlitDev wants to merge 1 commit into
carlrobertoh:masterfrom
SunlitDev:feat/focus-actions
Open

feat: add focus actions for Agent and Chat tool window inputs#1227
SunlitDev wants to merge 1 commit into
carlrobertoh:masterfrom
SunlitDev:feat/focus-actions

Conversation

@SunlitDev

Copy link
Copy Markdown

Register two new actions (no default keybinding, not attached to any menu) so users can assign their own shortcuts in Settings > Keymap:

  • ProxyAI.FocusAgentInput: show tool window, switch to Agent tab, focus input
  • ProxyAI.FocusChatInput: show tool window, switch to Chat tab, focus input

For Agent, AgentToolWindowPanel#focusActiveInput() prefers the landing panel when present and falls back to the active tab; Chat reuses the existing ChatToolWindowPanel#requestFocusForInput().

Register two new actions (no default keybinding, not attached to any menu)
so users can assign their own shortcuts in Settings > Keymap:

- ProxyAI.FocusAgentInput: show tool window, switch to Agent tab, focus input
- ProxyAI.FocusChatInput:  show tool window, switch to Chat tab,  focus input

For Agent, AgentToolWindowPanel#focusActiveInput() prefers the landing
panel when present and falls back to the active tab; Chat reuses the
existing ChatToolWindowPanel#requestFocusForInput().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant