On Mon, 27 Mar 2006, bulia byak wrote:
On 3/27/06, Martin Owens <doctormo@...1114...> wrote:
or even a copy paste that works with the apple command key instead of the ctrl key.
I don't think GTK gives as an access to this key. If you know how to add it without disrupting other platforms, let me know and I'll do it.
GTK does give access to the key. The following is true for my Mac, with no xmodmap changes:
Apple keysyms are GDK_Meta_L and GDK_Meta_R Apple key modifier is GDK_MOD2_MASK
Alt/Option keysym is GDK_Mode_switch Alt/Option modifier is GDK_MOD1_MASK
I point out the behaviour of Alt since the Alt/Option key on Macs does not return GDK_Alt_{L,R} as might be expected. Though it does return the same modifier as on Linux. This means Alt works in the places in Inkscape that check with modifiers but not places where the key press itself is checked.
I'm not sure of the right way to do Apple key shortcuts. Maybe it is to have all the logic that tests for Control (e.g., MOD__CTRL) return true if the Apple key is down, so that it acts as an extra Control key? Alternatively, we could use the shortcuts XML mechanism (is this all working properly now?) to have a separate set of keyboard shortcuts using "Apple+Key" on Mac, which allows more versatility? Or maybe a modifier specified in the XML that resolves to Ctrl on Windows and Linux, and the Apple key on Macs?
Cheers, Michael