From c3b978a9eba2f8d238f37c0177798cdf25419374 Mon Sep 17 00:00:00 2001 From: Jun Wako Date: Sun, 12 Jul 2015 07:32:36 +0900 Subject: [PATCH] Fix m0110 keymaps --- editor/m0110/keymap_editor.js | 2 +- editor/m0110/m0110.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/editor/m0110/keymap_editor.js b/editor/m0110/keymap_editor.js index 544a4834..9aa618c3 100644 --- a/editor/m0110/keymap_editor.js +++ b/editor/m0110/keymap_editor.js @@ -43,7 +43,7 @@ $(function() { $(".layer").click(function(ev, ui) { var layer = parseInt($(this).attr('id').match(/layer-(\d+)/)[1]); editing_layer = layer; - load_keymap_on_keyboard(layer, keymaps[layer] || no_map()); + load_keymap_on_keyboard(layer, keymaps[layer]); }); diff --git a/editor/m0110/m0110.js b/editor/m0110/m0110.js index 515ff008..eae5d044 100644 --- a/editor/m0110/m0110.js +++ b/editor/m0110/m0110.js @@ -148,6 +148,12 @@ keymaps = [ [0x00,0x00,0x55,0x00,0x00,0x00,0x57,0x00,], [0x2E,0x00,0x00,0x00,0x00,0x54,0x00,0x00,], ], + no_map(), + no_map(), + no_map(), + no_map(), + no_map(), + no_map(), ]; /* Fn actions(32*2) */