WizzWriters / spelldraw-app

Free and open-source whiteboard.
Other
0 stars 0 forks source link

Keyboard interceptor ⌨️ #22

Closed MusicFreak456 closed 11 months ago

MusicFreak456 commented 1 year ago

React to events from keyboard. In minimal version add undo action for ctrl+z shortcut and prepare scalable solution for registering to all kinds of other shortcuts in the future.

ventus550 commented 1 year ago

Exciting stuff

MusicFreak456 commented 1 year ago

In minimal example we will need to have #83 done, so we have any shortcuts to react to. Blocked for now.

MusicFreak456 commented 1 year ago

Not really needed to have 'blocked' label here. We can implement changing between tools without waiting.

MusicFreak456 commented 1 year ago

To ensure robustness of this implementation, I think it would be nice to have "namespaces" or rather "contexts" of shortcuts, so it would be possible to have different behavior for the same shortcut depending on what situation user is in.

ventus550 commented 11 months ago

To ensure robustness of this implementation, I think it would be nice to have "namespaces" or rather "contexts" of shortcuts, so it would be possible to have different behavior for the same shortcut depending on what situation user is in.

Interesting. I like the idea. Still, it's difficult to say without knowing the future landscape of the application.