Override the alt-key in a class ??
-
hi,
within my own class (tool) i use shift, ctrl and alt for alternative mouse functions.
is it possible to override the native alt-function (menu-hi-lite) temporarily within a tool
and set it back , when the tool is finished?
i canot find any topic about this ....
thanx
stan -
The
%(#000000)[alt]
key is often operating-system-reserved, and provides functions. If applications stay in their own field, there shouldn't be conflicts (or confusion of users).There are no special API methods for enabling/disabling. Some API methods can be used for to override default behaviour (inside the application), like onMButtonDown (default: orbit), onRButtonDown (default: application context menu).
But have you tried pressing%(#000000)[alt]
+%(#000000)[altgr]
?
A good alternative to overloading a tool with multiple modes is to just make several tools, and intuitive icons that make it easy to switch. -
@artmusicstudio said:
is it possible to override the native alt-function (menu-hi-lite) temporarily within a tool
This is possible for ALT.
You need to return true in the onKeyUp method for the case of key == ALT_MODIFIER_KEY.Actually, returning true seems to prevent bubbling. This is also a way to prevent characters to go to the VCB
Fredo
Advertisement