GNOME Bugzilla – Bug 721789
can't press A or Delete to archive message
Last modified: 2014-02-05 02:44:28 UTC
With recent changes I can no longer press A to archive a message. Has this shortcut gone away? (If so I will miss it, and also the help needs to be updated since it still lists this keyboard shortcut.)
The Delete key won't archive a message any more either.
Actually it appears there is now no working shortcut for archiving a message since Backspace currently deletes a message (see bug 721792).
Pressing Delete or Backspace should trash the message. Pressing A should still archive a message. When I press A, I get: (geary:3148): Gdk-WARNING **: Event with type 8 not holding a GdkDevice. It is most likely synthesized outside Gdk/GTK+ Not sure what's going on there, but we should investigate and fix.
The Event type 8 error was reported in bug #713240. Eric investigated this some time ago, even digging into the GDK code. The code generating the error is undocumented (as I recall) and we were a little mystified why it was generated or what it signified. He asked a question about it on the GTK mailing list and received no response. If my memory serves, this error message only occurred if using a hot key was the first Action invoked. That is, once the user pressed a toolbar button, the GDK error would go away. That doesn't seem to be the case with A any longer. There's a slight change in the recent patch to how we handle keyboard events, primarily to detect when Shift is pressed to change the action/icon of the Trash button (similar to how we change the Rotate button in Shotwell). I can't imagine how that would cause this problem, but perhaps that's one place to start looking.
See note at bug #713240 for a development on this problem. I was able to stop this warning from happening entirely by manually tweaking the GTK bindings and avoid copying the GdkEventKey. However, the A accelerator still doesn't work; I don't know why.
Jürg has a patched GDK bindings available at #713240 that stops the console warning. However, even with that in place, our keyboard shortcuts aren't working. We need to investigate now that we know for certain this isn't due to bindings.
Pushed to master, commit 28c7eba1 Fix requires compilation with Vala 0.23.2 or better, but code will still compiles with older versions.