Inspector+UI: Close inspector with shortcuts

This brings keyboard shortcuts for the inspector up with common
convention in FF and Chrome: Ctrl+Shift+C now also opens the inspector,
and F12, Ctrl+W, and Ctrl+Shift+I now close the inspector when the
inspector window is focused.

Resolves #972
This commit is contained in:
Tyler Dence 2024-12-03 18:32:43 -05:00 committed by Sam Atkins
commit 5cfed4524d
Notes: github-actions[bot] 2025-01-03 10:48:11 +00:00
5 changed files with 31 additions and 3 deletions

View file

@ -125,6 +125,8 @@ private:
void close_sub_widgets();
void recreate_inspector();
QBoxLayout* m_layout { nullptr };
QToolBar* m_toolbar { nullptr };
QToolButton* m_hamburger_button { nullptr };