I want to create a browser extension to experiment with new keyboard shortcuts for OGS’ UI. For example:
- A shortcut for focusing on the chat box.
- More ambitiously, shortcuts for playing the game itself — I wonder if using the arrow keys and another one for confirming the move would be acceptable UX…
To accomplish some of that it would be nice if I had a summarized guide of how OGS’ API works — I’m not talking about the web REST API, but the OOP one (JS/TS DOM), I believe. For example, does anyone have a pointer to docs on how the Goban
canvas element works inside OGS so I can dispatch events on it in a more proper manner?
I also don’t have much experience with the
canvas HTML element at all, so, if you have a pointer to a good tutorial given this context, that would be very useful as well.
I’ve recently created one of these keyboard shortcut browser extensions for YouTube, if you want to have a more concrete example of what I mean.