Re: [gtk-osx-users] Command+Backtick shortcut intercepted
- From: John Ralls <jralls ceridwen us>
- To: Antoine Martin <antoine nagafix co uk>
- Cc: gtk-osx-users-list gnome org
- Subject: Re: [gtk-osx-users] Command+Backtick shortcut intercepted
- Date: Tue, 15 Nov 2016 07:55:05 -0800
On Nov 15, 2016, at 12:51 AM, Antoine Martin <antoine nagafix co uk> wrote:
Hi,
Our pygtk2 app (xpra) is apparently intercepting the "Command +
Backtick" shortcut on osx, which is preventing users from switching windows.
Has anyone else seen this behaviour in other GTK2 apps?
We do override gtk.Window.do_key_press_event, but calling the superclass
handler does not help (apparently).
How do we configure / change which shortcuts are seen by the application
and which ones are handled by the host OS?
Since the application does see the key events, can we somehow re-inject
them into the OS?
Yes, it seems to be generally true.
I don't know offhand how switching windows in response to cmd-` is implemented in Cocoa (or ctrl-tab Gnome,
for that matter), but I suspect that it's handled by the NSApplcation object and that it requires that the
Windows menu be managed by that object. There's nothing in GtkosxApplication to do that. I think that's more
likely to be the problem rather than that cmd-` is getting eaten by Gtk-2.
As long as your application uses GtkActions you can configure shortcuts with an accel map. This is
demonstrated at line 877 of test-integration.c.
Regards,
John Ralls
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]