fix(keymap) allow 0 in keymap abbr when rename (#362)

This commit is contained in:
Róbert Kiss
2017-07-18 00:06:36 +02:00
committed by László Monda
parent c9d8e735de
commit 25257132a6

View File

@@ -274,7 +274,7 @@ export function getMacro(id: number) {
}
function generateAbbr(keymaps: Keymap[], abbr: string): string {
const chars: string[] = '123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('');
const chars: string[] = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('');
let position = 0;
while (keymaps.some((keymap: Keymap) => keymap.abbreviation === abbr)) {