Hello --

On Sun, Jul 24, 2011 at 11:31:56AM -0600, Glenn Golden wrote:
> 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.)
diff --git a/fvwm/menubindings.c b/fvwm/menubindings.c
index 62accf3..354c396 100644
--- a/fvwm/menubindings.c
+++ b/fvwm/menubindings.c
@@ -707,7 +707,7 @@ void menu_shortcuts(
 
 		/* For multiple instances of a single hotkey, just move the
 		 * selection */
-		if (countHotkey > 1)
+		if (countHotkey >= 1)
 		{
 			*pmi_current = new_item;
 			pmret->rc = MENU_NEWITEM;

Reply via email to