Page 1 of 1
UDC with popup-menu and keyboard-shortcut
Posted: 08 Feb 2014 14:57
by xy-man
I have a tiny user defined command which
shows the "power filters" popup-menu:
::button visualfilter, 8
When I assign a keyboard-shortcut to this UDC
and press the assigned keyboard-shortcut,
the "power filters" popup-menu just flashes and is therefore not usable.
Re: UDC with popup-menu and keyboard-shortcut
Posted: 08 Feb 2014 15:15
by binocular222
Which key did you assign?
Hint: key up may trigger another action, thus destroy the Power Filter menu.
Re: UDC with popup-menu and keyboard-shortcut
Posted: 08 Feb 2014 16:05
by xy-man
The assigned key is Ctrl+Shift+2,
but the key is not the problem,
because of this experiment:
I changed the script to:
::msg "Mer losse d'r Do[m,n] en Kölle";button "visualfilter", 8
Now, the message-box appears and after closing the message-box,
the powerfilter popup appears correctly and is usable.
So for me it seems to be more an issue of window-handling
(parent-window ?)
Re: UDC with popup-menu and keyboard-shortcut
Posted: 11 Feb 2014 09:55
by admin
Tick "On Key-Up" in Manage User-Defined Commands. You discovered the reason why this option exists.

Re: UDC with popup-menu and keyboard-shortcut
Posted: 13 Feb 2014 12:16
by xy-man
admin wrote:Tick "On Key-Up" in Manage User-Defined Commands. You discovered the reason why this option exists.

... and I also discovered the reason, why you have written the help-file

.
Sorry for the fuss!
Re: UDC with popup-menu and keyboard-shortcut
Posted: 13 Feb 2014 14:14
by admin