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