Inkscape: A Vector Drawing Tool

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

Reported by Wolf on 2009-09-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Low
Unassigned

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.

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

from the inkscape-dev archives: JiHO already noticed the same issue with the Inkscape 0.47pre0 experimental build
<http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/30473/focus=30482>

thus considering the report as confirmed.

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

Maybe using ige-mac-integration is a possibility:

http://trac.macports.org/browser/trunk/dports/devel/ige-mac-integration/Portfile

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.

~suv (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."
<http://inkscape.svn.sourceforge.net/viewvc/inkscape?view=rev&revision=17014>
related thread "Inkscape native Mac OS X build & look improvements" from Jan 2008 in inkscape-devel:
<http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/24015>
more recent thread about reporting bugs/RFEs for GTK+/Quartz and OS X integration issues in inkscape-devel:
<http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/32179/focus=32194>

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:

http://sourceforge.net/mailarchive/forum.php?thread_name=AC03752D-5792-4C95-8A21-D2B5B15D1A32%40ceridwen.fremont.ca.us&forum_name=gtk-osx-users

This is the archive:

http://sourceforge.net/mailarchive/forum.php?forum_name=gtk-osx-users

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
(http://downloads.sourceforge.net/downloads/gtk-osx/ige-mac-integration-0.8.6.tar.gz).
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 :
~suv (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)

<http://mail.gnome.org/archives/gtk-devel-list/2010-March/msg00132.html>

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.

~suv (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
~suv (suv-lp) on 2011-03-21
tags: added: shortcuts
removed: build
~suv (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/>
    <http://www.bennewitz.com/bluefish/stable/binaries/macosx/>

[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.»).

~suv (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>
    <http://gtk-osx.sourceforge.net/ige-mac-integration/GtkOSXApplication.html#gtk-osxapplication-set-use-quartz-accelerators>

summary: - [Gtk+/Quartz]Keyboard shortcuts are not mapped to command key
+ [Gtk+/Quartz] Keyboard shortcuts are not mapped to command key
~suv (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:
<http://git.gnome.org/browse/gimp/commit/?h=gimp-2-8&id=3066a8228a1273ad37a30d095e8ce94faceb1cdc>

For additional changes, try also this search of commit logs:
<http://git.gnome.org/browse/gimp/log/?h=gimp-2-8&qt=grep&q=modifier>

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers