Enable CTRL modifier key with purple laser

This commit is contained in:
Anon_11487
2024-11-01 23:44:01 -05:00
committed by galister
parent 50b30565da
commit f941f76339

View File

@@ -225,9 +225,16 @@ fn key_press(
Some(KeyButtonData::Key { vk, pressed }) => {
data.key_click(app);
if let PointerMode::Right = mode {
data.modifiers |= SHIFT;
set_modifiers(app, data.modifiers);
match mode {
PointerMode::Right => {
data.modifiers |= SHIFT;
app.hid_provider.set_modifiers(data.modifiers);
},
PointerMode::Middle => {
data.modifiers |= CTRL;
app.hid_provider.set_modifiers(data.modifiers);
},
_ => {},
}
send_key(app, *vk, true);