mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 12:38:39 -09:00
Fix #2195: normalizing keybindings using localeCompare to include non english keyboards as well
22 lines
461 B
JavaScript
22 lines
461 B
JavaScript
import test from 'ava';
|
|
import normalize from '../../app/utils/keymaps/normalize';
|
|
|
|
test(`is normalizing keymaps correctly`, t => {
|
|
const notNormalized = 'cmd+alt+o';
|
|
const normalized = 'alt+cmd+o';
|
|
|
|
t.is(
|
|
normalize(notNormalized),
|
|
normalized
|
|
);
|
|
});
|
|
|
|
test(`is normalizing localized keymaps correctly`, t => {
|
|
const notNormalized = 'cmd+alt+ç';
|
|
const normalized = 'alt+ç+cmd';
|
|
|
|
t.is(
|
|
normalize(notNormalized),
|
|
normalized
|
|
);
|
|
});
|