![](https://secure.gravatar.com/avatar/46b7fe9c91059c866acc6c82da614e1f.jpg?s=120&d=mm&r=g)
On Sat, 25 Aug 2007 04:35:30 +0100, Jon A. Cruz <jon@...18...> wrote:
On Aug 3, 2007, at 10:49 AM, MenTaLguY wrote:
On Fri, 2007-08-03 at 07:02 -0700, Josh Andler wrote:
All that's needed is for the keyboard definition file to allow the assignment of meta instead of alt to the mouse actions. It makes far more sense to allow users to change Inkscape than to require them to change their desktop from the standard layout.
I think I'd prefer a preference to use meta rather than alt. That might be more work; I dunno. But I think we only technically have three bits free for modifiers the way it's currently done.
Though we need to consider things like Mac keyboards and OS X.
:-)
last time I looked at this issue, it seemed that there were a few different things in a few different places that were wrangling keys in different ways. Hopefully we can get them all unified.
I have a patch in the system for this and I did have to put in a central "wrangling point", which is basically a very simple event snooper which sets the Alt flag if the <user selectable (defaults to 1) mod flag> is set. This user setting is a new option in the preferences.xml file so can be set differently by each user for their keyboard rather than being hardcoded in the way the current Alt usage is.
Since the default action of the event snooper is to leave everything alone, it should have no impact on Macs or anyone else who doesn't want to use the option.
I've been using the patch with the SVN version since I wrote it and it seems to be working fine (I'm using Mod3 for my keyboard). As I said in an earlier email, however, I'm not a C++ coder (and after looking at what's involved in fixing the font handling I remember why!) so it's probable that the code could be arranged better but even so the patch is only 146 lines including whitespace and context.
Thomas