GoogleChromeLabs / text-app

A text editor for ChromeOS and Chrome
https://chrome.google.com/webstore/detail/mmfbcljfglbokpmkimbfghdkjmjhdgbg
Other
554 stars 149 forks source link

Add Ctrl E shortcut to focus the file tab in the side nav #572

Closed ZufengW closed 2 years ago

ZufengW commented 2 years ago

The Ctrl E shortcut focuses the tab in the side nav corresponding to the currently open editor. It also opens the sidebar and closes settings if needed. Ctrl Shift E does the same thing. The choice of key was inspired by Visual Studio Code, which has:

Also set focus when opening and closing the settings page. Previously it lost focus.

And remove the resize event because it is unused.