Skip to content

Commit

Permalink
chore: add missing default keyboard names
Browse files Browse the repository at this point in the history
  • Loading branch information
arnog committed Aug 18, 2023
1 parent 5f87562 commit 5928b71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/public/virtual-keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ export type EditToolbarOptions = 'none' | 'default';

export type VirtualKeyboardName =
| 'default'
| 'compact'
| 'minimalist'
| 'numeric-only'
| 'numeric'
| 'symbols'
| 'alphabetic'
Expand Down
9 changes: 7 additions & 2 deletions src/virtual-keyboard/data.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import type { VirtualKeyboardLayout } from '../public/virtual-keyboard';
import type {
VirtualKeyboardLayout,
VirtualKeyboardName,
} from '../public/virtual-keyboard';

export const LAYOUTS: Record<string, VirtualKeyboardLayout> = {
export const LAYOUTS: Partial<
Record<VirtualKeyboardName, VirtualKeyboardLayout>
> = {
'numeric': {
label: '123',
labelClass: 'MLK__tex-math',
Expand Down

0 comments on commit 5928b71

Please sign in to comment.