From 3f339b7de742b025ae3c6ce76b029f329de69707 Mon Sep 17 00:00:00 2001 From: tmk Date: Thu, 5 Sep 2019 00:01:07 +0900 Subject: [PATCH] pc98_usb: Fix STOP as magic key --- converter/pc98_usb/config.h | 2 +- converter/pc98_usb/unimap.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/converter/pc98_usb/config.h b/converter/pc98_usb/config.h index d3898d90..b7a00ed7 100644 --- a/converter/pc98_usb/config.h +++ b/converter/pc98_usb/config.h @@ -32,7 +32,7 @@ along with this program. If not, see . /* key combination for command */ #define IS_COMMAND() ( \ - keyboard_report->keys[0] == KC_STOP || \ + matrix_is_on(12, 0) || /* STOP */ \ keyboard_report->mods == (MOD_BIT(KC_LALT) | MOD_BIT(KC_RALT)) \ ) diff --git a/converter/pc98_usb/unimap.c b/converter/pc98_usb/unimap.c index 20befeaf..c84953ba 100644 --- a/converter/pc98_usb/unimap.c +++ b/converter/pc98_usb/unimap.c @@ -26,7 +26,7 @@ const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = { #endif /* ,---. ,---. ,------------------------. ,------------------------. ,------------------------. - |Pau| |PrS| | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10| | F11| F12| F13| F14| F15| + | | |PrS| | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10| | F11| F12| F13| F14| F15| `---' `---' `------------------------' `------------------------' `------------------------' ,-------------------------------------------------------------. ,-------. ,---------------. | Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|JPY|Bspc| |Ins|Del| |Hom|End| -| /| @@ -42,7 +42,7 @@ const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = { Caps and Kana are locking keys. */ UNIMAP_PC98( - PAUS,PSCR, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, + NO, PSCR, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, DEL, HOME,END, PMNS,PSLS, TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, PGDN,PGUP, P7, P8, P9, PAST, LCTL,LCAP,A, S, D, F, G, H, J, K, L, SCLN,QUOT,BSLS,ENT, UP, P4, P5, P6, PPLS, -- 2.46.2