[Gtk+/Quartz] Keyboard shortcuts are not mapped to command key

Bug #438603 reported by Wolf on 2009-09-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I did a build for Mac OS X aqua. Keyboard shortcuts work as they do in the X11 environment, e.g.
"open document" is called by "control-o", but Mac OS-like would be "Command-O".

Keyboard shortcuts arent displayed in the menues either.

su_v (suv-lp) on 2009-09-29
tags: added: build osx
su_v (suv-lp) wrote :

from the inkscape-dev archives: JiHO already noticed the same issue with the Inkscape 0.47pre0 experimental build

thus considering the report as confirmed.

Changed in inkscape:
status: New → Confirmed
su_v (suv-lp) on 2009-11-24
tags: added: gtk-osx
Wolf (drechsel) wrote :

Maybe using ige-mac-integration is a possibility:


According to people on the "GTK+ Mac OS X" mailing list the inkscape source code has to be patched to make use of it. If someone gives me some instruction how to do it, I'll try.

su_v (suv-lp) wrote :

1) do you have a link to the mail you refer to (in the archive of the "GTK+ Mac OS X" mailing list)?

2) some version of the osx menu and tool bar integration is already in Inkscape trunk - else you would not get the main menu bar at the top.
original commit for menu and toolbars: "Added part of a patch by Adam Strzelecki which makes GTK menu migrate to OS X menubar when GTK+quartz is used. This is taken from Gimp and should be safe enough at this stage since it really only affects OS X."
related thread "Inkscape native Mac OS X build & look improvements" from Jan 2008 in inkscape-devel:
more recent thread about reporting bugs/RFEs for GTK+/Quartz and OS X integration issues in inkscape-devel:

3) isn't this a GTK+/Quartz issue as well? See for example possibly related upstream bug reports from bugzilla.gnome.org :
346605 – [PATCH] Modifier-key events are not sent:
346609 – [PATCH] Quartz backend has no support for one-button mice:
530351 – Use standard mac shortcuts
597915 – Application menu accelerators not working
601863 – GTK+ should provide abstracted modifier masks
605799 – Option (MOD1) and Command (SUPER) modifiers are switched

Wolf (drechsel) wrote :

The mails on ige-mac-integration are here:


This is the archive:


Thanks for the other links - I learned that (what was to be expected) ige-mac-integration is not at all a new thing for our experts… )-:

597915 repeats what was said in the gtk-osx-list:
 At present these can be added to an application by using ige-mac-integration
Some modifications to the application's code are required, there are some
issues with multiple windows and the "application" menu, and it won't compile
for 64-bit.

Hm. Would be interesting to know which modifications are required, and which are already done.

Wolf (drechsel) wrote :
su_v (suv-lp) wrote :

good news ;-)

"GTK+ 2.20.0 released: What's new in GTK+ 2.20:"

OS X changes

 - GTK+ uses standard Mac keyboard shortcuts (Cmd-X/Cmd-C instead of
   Ctrl-X/Ctrl-C, etc)


We'll have to wait until MacPorts upgrades to this gtk2 version to test if it solves the problem with default keyboard shortcuts for both GTK+/X11 and GTK+/Quartz builds of Inkscape, without changes in Inkscape's code.

su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48+devel r10101 on OS X 10.5.8 (i386),
gtk2 @2.22.1_1+no_x11+quartz

Changed in inkscape:
importance: Undecided → Low
su_v (suv-lp) on 2011-03-21
tags: added: shortcuts
removed: build
su_v (suv-lp) wrote :

As far as I can tell this is a problem in Inkscape, not upstream:

- 'Cmd' instead of 'Ctrl' works e.g. with the GTK+/Quartz package
   of Bluefish [1]
- in Inkscape, no keyboard shortcuts are listed in the menus from
  the global menubar (they are listed in the context menu of the
  canvas area)
- even if 'gtk-key-theme-name = "Mac"' is set in the used gtkrc
  file (and the corresponding gtkrc file installed/loaded), the
  keymappings only work e.g. in Inkscape's gtkfilechooser, but not
  on the canvas area or any other Inkscape widget.
  Seems to me that Inkscape does its own thing about detecting and
  handling the modifiers. Currently, 'Cmd' acts as 'Alt' key if
  Inkscape is built with GTK+/Quartz [2]

[1] <http://bluefish.openoffice.nl/>

[2] see also bug #721448 comment #8 «Unexpectedly, the key 'Cmd'
    acts the same as 'Alt' under X11, whereas the real 'option/alt'
    key doesn't seem to be recognized by Inkscape.»).

su_v (suv-lp) on 2011-12-06
summary: - [aqua]Keyboard shortcuts are not mapped to command key
+ [Gtk+/Quartz]Keyboard shortcuts are not mapped to command key

Still present if built with the latest GTK+ version (2.28.8) with the current ige-mac-menu.* code removed (based on patches for bug #721448 from the blueprint <https://blueprints.launchpad.net/inkscape/+spec/inkscape-quartz>).

AFAIU the gtk-quartz-integration library has two shortcut/accelerator systems and requires additional code and configuration files [1] (help from a developer with experience in Gtk+/Quartz would be welcome). See also the latest comments in bug #721448.

[1] <http://live.gnome.org/GTK%2B/OSX/Integration>

summary: - [Gtk+/Quartz]Keyboard shortcuts are not mapped to command key
+ [Gtk+/Quartz] Keyboard shortcuts are not mapped to command key
su_v (suv-lp) wrote :

Works ok in current GIMP 2.8 (<Ctrl> if compiled with X11 backend, <Cmd> if compiled with Quartz backend).
Might be worthwhile to see what was changed in GIMP based on upstream changes in Gtk 2.24.8:

AFAICT this was the initial commit:

For additional changes, try also this search of commit logs:

su_v (suv-lp) on 2017-01-12
tags: added: gtk-quartz
removed: gtk-osx
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers