summaryrefslogtreecommitdiff
path: root/converter/m0110_usb/config.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-12-03 15:56:59 +0900
committertmk <nobody@nowhere>2012-12-05 17:53:41 +0900
commit7aca01ab809768a5007fba889b436e74e45a906d (patch)
treefb5bc04c11b4b4ece5c31f97d4a346783bd4e044 /converter/m0110_usb/config.h
parent07b6c1a58c8ccfd6e5d5bc57e34f6c44c24841a8 (diff)
Change IS_COMMAND.(M0110)
Diffstat (limited to 'converter/m0110_usb/config.h')
-rw-r--r--converter/m0110_usb/config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/converter/m0110_usb/config.h b/converter/m0110_usb/config.h
index b1b971ec98..be00259e6b 100644
--- a/converter/m0110_usb/config.h
+++ b/converter/m0110_usb/config.h
@@ -36,10 +36,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking Caps Lock support */
//#define MATRIX_HAS_LOCKING_CAPS
-/* Backspace for command key */
-#define BACKSPACE_CODE 0x33
+/* magic key */
#define IS_COMMAND() ( \
- matrix_is_on((BACKSPACE_CODE>>3)&0x0F, BACKSPACE_CODE&0x07) \
+ keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT) | MOD_BIT(KC_LGUI)) || \
+ keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT) | MOD_BIT(KC_LCTL)) \
)