[Bf-committers] Remappable hotkeys/custom keybindings

Tom Musgrove bf-committers@blender.org
Fri, 14 May 2004 14:47:22 +0000


I just posted this at funboard, but it might be more appropriate for here.  
If the framework is setup, would module maintainers (or others) be willing 
to locate and modify the hotkeys in their sections?

My below proposal would actually use two files, one contains the below, and 
the second #defines things like RMB to whatever the actual code is.

Also, the below might be usable for mouse gestures as well, ie

OBJECTMODE_MOVE_OBJECT = STRAIGHT_MOUSE_GESTURE

****Begin****
OK here is a short term solution for custom keybindings - it is compile
time, so it isn't the correct long term solution.  However, it is trivial to
do now, and it makes a future 'real solution' much eaiser to implement.

Essentially we set up a file that for each key has a really long name that
describes the function

ie

EDITMODE_SELECT_MESH = RMB

if there are mulltiple ways to do the same action then the second way is
appended with a 2 ie

EDITMODE_ZOOM = SCROLLMOUSE
EDITMODE_ZOOM2 = ALT+CTRL+LMB

etc.

then, we have the text descriptions above #defined, thus when we go to
compile, we end up with the same code.

However, those who really want different keybindings no longer need to hunt
through dozens of different files.  Also, this could make it much easier to
create predefined sets of keybindings for the popular alternatives.

What do you think?

Tom M.
LetterRip

_________________________________________________________________
Best Restaurant Giveaway Ever! Vote for your favorites for a chance to win 
$1 million! http://local.msn.com/special/giveaway.asp