Streamline hotkeys

This commit is contained in:
Pieter Vander Vennet 2023-12-09 16:01:15 +01:00
parent df01b1683a
commit f95a1a8039
2 changed files with 4 additions and 9 deletions

View file

@ -113,6 +113,9 @@ export default class Hotkeys {
if (keycode.length == 1) {
keycode = keycode.toUpperCase()
}
if (keycode === " ") {
keycode = "Spacebar"
}
modifiers.push(keycode)
return <[string, string | Translation]>[modifiers.join("+"), documentation]
})