Created
April 7, 2021 03:01
-
-
Save aileron/ee94d210ae8a984ce0441c5fe48a334c to your computer and use it in GitHub Desktop.
keyhac を使って、SKKで間違って送られてしまうキーコードへの対応処理
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import datetime | |
import subprocess | |
from keyhac import * | |
def configure(keymap): | |
keymap_terminal = keymap.defineWindowKeymap( app_name="com.googlecode.iterm2" ) # iterm2だけのローカル設定 | |
keymap_terminal["Ctrl-J"] = "104" # CTRL-Jを入力するとかなを送信。104はかなキーの仮想キーコード | |
keymap_terminal = keymap.defineWindowKeymap( app_name="com.tinyspeck.slackmacgap" ) # slack だけのローカル設定 | |
keymap_terminal["Ctrl-J"] = "104" # CTRL-Jを入力するとかなを送信。104はかなキーの仮想キーコード |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment