UI, libobs: Add Japanese shortcut keys for Windows

Add Japanese shortcut keys, non-convert (無変換) and convert (変換) and
disable IME for OBSHotkeyEdit.

Closes jp9000/obs-studio#930
This commit is contained in:
mntone 2017-05-27 17:24:24 +09:00 committed by jp9000
parent fce078d997
commit a6938c11b0
2 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public:
// enough with the default focus frame
setReadOnly(true);
#endif
setAttribute(Qt::WA_InputMethodEnabled, false);
setAttribute(Qt::WA_MacShowFocusRect, true);
InitSignalHandler();
ResetKey();

View File

@ -328,6 +328,8 @@ static int get_virtual_key(obs_key_t key)
case OBS_KEY_BRACKETRIGHT: return VK_OEM_6;
case OBS_KEY_ASCIITILDE: return VK_OEM_3;
case OBS_KEY_HENKAN: return VK_CONVERT;
case OBS_KEY_MUHENKAN: return VK_NONCONVERT;
case OBS_KEY_KANJI: return VK_KANJI;
case OBS_KEY_TOUROKU: return VK_OEM_FJ_TOUROKU;
case OBS_KEY_MASSYO: return VK_OEM_FJ_MASSHOU;