1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

HackStudio: Jump to file location when choosing a Locator suggestion

A couple of tweaks here to make it work better:
- Call `set_cursor_and_focus_line()` to make the Editor scroll to the
  symbol's location.
- Remove focus from the Locator's text box so your cursor jumps to the
  Editor instead of staying in the Locator.
This commit is contained in:
Sam Atkins 2024-01-19 12:56:05 +00:00 committed by Sam Atkins
parent 9322f0d110
commit d30f13a88d
2 changed files with 3 additions and 2 deletions

View file

@ -184,6 +184,7 @@ void Locator::open()
void Locator::close()
{
m_popup_window->hide();
m_textbox->set_focus(false);
}
void Locator::update_suggestions()