simondotm / beeb-vsc

Visual Studio Code Extension to support code development for BBC Micro
https://marketplace.visualstudio.com/items?itemName=simondotm.beeb-vsc
MIT License
13 stars 3 forks source link

feat: Set input focus when emulator view is focused #75

Closed simondotm closed 6 months ago

simondotm commented 6 months ago

The emulator now gets input focus when the webview panel gets focus. It also gets input focus after using toolbar buttons which seems the most intuitive solution.

Client now also gets notified of panel visible and active state changes, but doesn't yet need to run any logic on these.

Decided not to reload image when focus is acquired, could be unexpected if already running some code. Instead, the reset button will reload the disc image, and user can immediately shift+break etc. if they like since emulator will now have input focus.