Update for new modifier names

pull/389/head
Jesse Vincent 8 years ago
parent 115c54ef14
commit 55e5068cfc
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -48,10 +48,10 @@ namespace KaleidoscopePlugins {
if (k.raw >= KaleidoscopePlugins::Ranges::OSM_FIRST && k.raw <= KaleidoscopePlugins::Ranges::OSM_LAST) { if (k.raw >= KaleidoscopePlugins::Ranges::OSM_FIRST && k.raw <= KaleidoscopePlugins::Ranges::OSM_LAST) {
uint8_t idx = k.raw - KaleidoscopePlugins::Ranges::OSM_FIRST; uint8_t idx = k.raw - KaleidoscopePlugins::Ranges::OSM_FIRST;
k.flags = 0; k.flags = 0;
k.keyCode = Key_LCtrl.keyCode + idx; k.keyCode = Key_LeftControl.keyCode + idx;
} }
if (k.raw < Key_LCtrl.raw || k.raw > Key_RGUI.raw) if (k.raw < Key_LeftControl.raw || k.raw > Key_RightGui.raw)
continue; continue;
if (Keyboard.isModifierActive (k.keyCode)) if (Keyboard.isModifierActive (k.keyCode))

Loading…
Cancel
Save