plover icon indicating copy to clipboard operation
plover copied to clipboard

Unexpected compound modifier behavior

Open jandew42 opened this issue 2 years ago • 5 comments

I'm not certain this is a bug, (it could be intended behavior) but it's unexpected, and I'm curious why it occurs.

When pressing the following key combinations with plover output disabled: alt-PrtSc take a screenshot of the current window ctrl-alt-PrtSc does the same, presumably because Windows ignores the unnecessary ctrl

When making a plover dictionary entry for these bindings, the latter doesn't work. That is: {#Alt_L(Print)} takes a screenshot of the current window {#Control_L(Alt_L(Print))} takes a screenshot of the entire screen, same as {#Print} on its own

The expected behavior would be for the last case to behave exactly the same as ctrl-alt-PrtSc and take a screenshot of the current window.

Operating system and hardware

  • OS: Windows 10 Home
  • Plover: 4.0.0.dev10
  • Keyboard: Kumara Redragon K552

jandew42 avatar Nov 04 '21 17:11 jandew42

You're using the exact same side for each modifier? Same order for pressing the keys?

benoit-pierre avatar Nov 04 '21 17:11 benoit-pierre

You're using the exact same side for each modifier? Same order for pressing the keys?

yes and yes

jandew42 avatar Nov 04 '21 20:11 jandew42

Moreover, the plover-disabled manual combo works irrespective of order (provided the PrtSc is last).

And the manual ctrl-alt-PrtSc behavior described is the behavior whether plover is open or not, and whether plover is disabled or enabled.

jandew42 avatar Nov 04 '21 20:11 jandew42

Plover has some known issues with Alt modifiers in Windows, specifically with OS-level shortcuts like Alt-Tab. Poster child of a Heisenbug, that one...debugging an issue with focus switch is rather difficult with debuggers that steal focus on breakpoints.

fourshade avatar Nov 05 '21 21:11 fourshade

Alt+tab issue may be https://github.com/openstenoproject/plover/issues/1154 . Try merging the related pull request to see if this issue is also fixed.

If it still doesn't work try applying https://github.com/openstenoproject/plover/issues/1410#issuecomment-932761870 too.

user202729 avatar Nov 06 '21 00:11 user202729