forked from PrismarineJS/prismarine-web-client
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: some keybinding names were incorrectly parsed
feat: make fullscreen button (F11) configurable in the keybinding panel
- Loading branch information
Showing
4 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { test, expect } from 'vitest' | ||
import { parseBindingName } from './Keybinding' | ||
|
||
test('display keybinding correctly', async () => { | ||
expect(await parseBindingName('unknown')).toMatchInlineSnapshot('"unknown"') | ||
expect(await parseBindingName('KeyT')).toMatchInlineSnapshot('"T"') | ||
expect(await parseBindingName('Digit1')).toMatchInlineSnapshot('"1"') | ||
expect(await parseBindingName('Numpad1')).toMatchInlineSnapshot('"Numpad 1"') | ||
expect(await parseBindingName('MetaLeft')).toMatchInlineSnapshot('"Left Meta"') | ||
expect(await parseBindingName('Space')).toMatchInlineSnapshot('"Space"') | ||
expect(await parseBindingName('Escape')).toMatchInlineSnapshot('"Escape"') | ||
expect(await parseBindingName('F11')).toMatchInlineSnapshot('"F11"') | ||
expect(await parseBindingName('Mouse 55')).toMatchInlineSnapshot('"Mouse 55"') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters