fix(keymap) allow 0 in keymap abbr when rename (#362)
This commit is contained in:
committed by
László Monda
parent
c9d8e735de
commit
25257132a6
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user