[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


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



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



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.

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