| ... | @@ -122,6 +122,9 @@ function keybindingFromEvent(event: KeyboardEvent<HTMLInputElement>): string | n | ... | @@ -122,6 +122,9 @@ function keybindingFromEvent(event: KeyboardEvent<HTMLInputElement>): string | n |
| 122 | } | 122 | } |
| 123 | if (event.altKey) parts.push("alt"); | 123 | if (event.altKey) parts.push("alt"); |
| 124 | if (event.shiftKey) parts.push("shift"); | 124 | if (event.shiftKey) parts.push("shift"); |
| | 125 | if (parts.length === 0) { |
| | 126 | return null; |
| | 127 | } |
| 125 | parts.push(keyToken); | 128 | parts.push(keyToken); |
| 126 | return parts.join("+"); | 129 | return parts.join("+"); |
| 127 | } | 130 | } |