Discussion:
FVWM: Menu selection when hotkey is unique to a particular item
Glenn Golden
2011-07-24 17:31:56 UTC
Permalink
In fvwm 2.6.1: If several menu items are associated with a particular hotkey,
then typing that key repeatedly cycles thru those items, hilighting each in
turn; then you hit <cr> (or space) to invoke the one you want. But if there's
only one item is associated with a given hotkey, then hitting that hotkey
immediately invokes it and the menu disappears. Is there any config-able way
to change the latter behavior so that it is the same as for the non-unique
case, i.e. so that the item is highlighted and then requires explicit <cr> to
invoke?

The man page does not seem to indicate any parameters for controlling this
behavior, but perhaps I missed it.

Thanks,

Glenn
Thomas Adam
2011-07-24 18:10:32 UTC
Permalink
Hello --
Post by Glenn Golden
In fvwm 2.6.1: If several menu items are associated with a particular hotkey,
then typing that key repeatedly cycles thru those items, hilighting each in
turn; then you hit <cr> (or space) to invoke the one you want. But if there's
only one item is associated with a given hotkey, then hitting that hotkey
immediately invokes it and the menu disappears. Is there any config-able way
to change the latter behavior so that it is the same as for the non-unique
case, i.e. so that the item is highlighted and then requires explicit <cr> to
invoke?
The man page does not seem to indicate any parameters for controlling this
behavior, but perhaps I missed it.
That's because it's not possible.

Does the attached patch unconditionally define the behaviour you're after
though? If so, I'll embelish it with options, and commit to CVS.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Loading...