Merge branch 'main' into top-toolbar-height

This commit is contained in:
Abdo 2025-06-25 14:16:39 +03:00 committed by GitHub
commit 0733a43e44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -510,7 +510,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
border: 1px solid var(--border);
border-radius: var(--border-radius);
padding: 6px;
margin: 1px;
margin: 1px 3px 3px 1px;
&:focus-within {
outline-offset: -1px;

View file

@ -166,7 +166,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}
function onKeydown(event: KeyboardEvent): void {
switch (event.code) {
switch (event.key) {
case "Enter":
onEnter(event);
break;

View file

@ -90,7 +90,7 @@ export function keyToPlatformString(key: string): string {
}
export function isArrowLeft(event: KeyboardEvent): boolean {
if (event.code === "ArrowLeft") {
if (event.key === "ArrowLeft") {
return true;
}
@ -98,7 +98,7 @@ export function isArrowLeft(event: KeyboardEvent): boolean {
}
export function isArrowRight(event: KeyboardEvent): boolean {
if (event.code === "ArrowRight") {
if (event.key === "ArrowRight") {
return true;
}
@ -106,7 +106,7 @@ export function isArrowRight(event: KeyboardEvent): boolean {
}
export function isArrowUp(event: KeyboardEvent): boolean {
if (event.code === "ArrowUp") {
if (event.key === "ArrowUp") {
return true;
}
@ -114,7 +114,7 @@ export function isArrowUp(event: KeyboardEvent): boolean {
}
export function isArrowDown(event: KeyboardEvent): boolean {
if (event.code === "ArrowDown") {
if (event.key === "ArrowDown") {
return true;
}