fix: improve keyboard shortcuts (and non working help dialog)#413
fix: improve keyboard shortcuts (and non working help dialog)#413DeepSpace2 wants to merge 2 commits intoscribble-rs:masterfrom
Conversation
1824731 to
10dbd9a
Compare
10dbd9a to
bcb3a86
Compare
|
Hey, took my sweet time here, sorry. Um, wouldn't it be sensible to just do the key definitions clientside to begin with? There's not really a benefit with moving these to the server, as each user might want to have different shortcuts. As as reminder, the server is NEVER meant to persistently store anything, so we can't have it store shortcuts per user either. Maybe we can just make a dumb The added undo shortcut and the other stuff seem like good changes though. |
|
Once we merge this, i should probably create a new release, kinda forgot about that 😅 |
Done :) And don't worry about the time it took, we all got more important things to do than fun side projects. |
I'll see what I can do about it
That's weird, it's working on my end, both on mac and Windows (both running Chrome/Brave). I'll test later on Firefox. Untitled.mov |
|
Hm, maybe one of my plugins is interfering. I'll look into this deeper later. |
May I suggest that we reconsider the mobile layout from scratch as a separate issue/PR? there are some other things I'd like to improve there regardless of the help menu. For example, I think that dialog modals should be direct descendants of That way they can "pop out" more and their size won't be limited to/by the size of the canvas/drawing board. This will be extremely useful on smaller screens. (and we most certainly want to consider not allowing multiple dialogs open at the same time, regardless of mobile or not). |
|
Yeah, I agree with you ... the mobile thing was more of a hindsight anyway |

Closes #355
Fixes help dialog not opening at all ("invalid invocation" console error)
Keybindings defined in a single location in the codebase. Keys are no longer hardcoded across backend and frontend code. This allows keys to be user-configurable in the future.
Shows keybindings in tooltip messages
Adds missing "undo" keybinding to help dialog
Significantly reduces text overload in help dialog
Caveat: As I removed format specifiers from a translatable string (
"switch-pencil-sizes"), users of non-English/Hebrew languages will see raw%suntil these languages will be updated. I wasn't comfortable enough to use machine translations for this.