mirror of https://github.com/wayvr-org/wayvr.git
Enable CTRL modifier key with purple laser
This commit is contained in:
parent
50b30565da
commit
f941f76339
|
|
@ -225,9 +225,16 @@ fn key_press(
|
||||||
Some(KeyButtonData::Key { vk, pressed }) => {
|
Some(KeyButtonData::Key { vk, pressed }) => {
|
||||||
data.key_click(app);
|
data.key_click(app);
|
||||||
|
|
||||||
if let PointerMode::Right = mode {
|
match mode {
|
||||||
data.modifiers |= SHIFT;
|
PointerMode::Right => {
|
||||||
set_modifiers(app, data.modifiers);
|
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);
|
send_key(app, *vk, true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue