mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Merge branch 'main' into top-toolbar-height
This commit is contained in:
commit
0733a43e44
3 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue