We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cee85cb + 9ecc940 commit 1302c29Copy full SHA for 1302c29
packages/components/src/components/tree/component.tsx
@@ -172,7 +172,7 @@ export class KolTreeWc implements TreeAPI {
172
event.preventDefault();
173
break;
174
}
175
- case event.key.match(/[a-zA-Z0-9]/)?.input: {
+ case event.key.match(/^[a-zA-Z0-9]$/)?.input: {
176
/* Ignore events with any modifier key to avoid breaking native browser or OS shortcuts such as ⌘+L */
177
if (!hasModifierKeyPressed) {
178
const char = event.key.toLowerCase();
0 commit comments