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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement