12 Mar
2008
12 Mar
'08
9:21 a.m.
Perhaps an idea would be to make a look-up table:
{ "alt select drag", settings (i.e. GDK_MOD1_MASK or some other thing) "shift node drag", settings ..., }
Then instead of 'if (event->button.state & GDK_MOD1_MASK)' you can do 'if ( try_match_in_userkeys_table("alt select drag", event->button.state) )' Loading the settings in the table from preferences would allow people to assign their own things for it? (as a first step, because all tooltips have to be changed accordingly :S aaargh)
Haven't thought this through; so there might be a simple reason not to do this.
Johan