After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735710 - [PATCH] Add <ctrl>N shortcut.
[PATCH] Add <ctrl>N shortcut.
Status: RESOLVED FIXED
Product: gnome-sudoku
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-sudoku-maint
gnome-sudoku-maint
Depends on:
Blocks:
 
 
Reported: 2014-08-30 11:49 UTC by Arnaud B.
Modified: 2014-09-04 21:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add <ctrl>N shortcut. (837 bytes, patch)
2014-08-30 11:49 UTC, Arnaud B.
none Details | Review
Add <ctrl>N and <ctrl>C shortcuts. (2.04 KB, patch)
2014-08-30 17:59 UTC, Arnaud B.
none Details | Review
Add <ctrl>N and <ctrl>R shortcuts. (2.05 KB, patch)
2014-09-01 13:53 UTC, Arnaud B.
committed Details | Review

Description Arnaud B. 2014-08-30 11:49:41 UTC
Created attachment 284883 [details] [review]
Add <ctrl>N shortcut.

I think that, even if <alt>N works, the <ctrl>N shortcut should be used to go to the new-game screen. It’s a standard shortcut, the other isn’t discoverable with actual Gtk+ settings, there’s already <ctrl>Z, etc.

Maybe we should set another <ctrl> shortcut for clearing board, and get rid with the <alt> key?
Comment 1 Michael Catanzaro 2014-08-30 15:40:30 UTC
(In reply to comment #0)
> I think that, even if <alt>N works, the <ctrl>N shortcut should be used to go
> to the new-game screen.

Yes!

> Maybe we should set another <ctrl> shortcut for clearing board

Maybe!

> and get rid with the <alt> key?

No!  There is a difference here. The <ctrl> shortcuts are what we call "accelerators" -- they're associated with a GAction of either the GtkApplication or the GtkApplicationWindow.  The <alt> shortcuts are "mnenmonics" or "access keys" that are associated with particular user interface elements -- in this case, the buttons on the window.  You can see mnemonics by holding down Alt. All text buttons should have mnemonics.
Comment 2 Arnaud B. 2014-08-30 17:59:52 UTC
Created attachment 284897 [details] [review]
Add <ctrl>N and <ctrl>C shortcuts.

No problem to have mnemonics, as long as I don’t have to deal with them. Here is a patch with the two shortcuts.
Comment 3 Arnaud B. 2014-08-30 18:01:24 UTC
Mh, in fact, I’m not sure. <ctrl>C or <ctrl>R? The two would make sense…
Comment 4 Parin Porecha 2014-09-01 13:43:29 UTC
I haven't seen the use of Ctrl+C for resetting something. Whenever I think about this shortcut, it's about either SIGINT, or copy text.
Ctrl+R seems more appropriate. (Reset, Refresh, ...) but no strong opinion :-)
Comment 5 Arnaud B. 2014-09-01 13:53:53 UTC
Created attachment 285014 [details] [review]
Add <ctrl>N and <ctrl>R shortcuts.

More usual with <ctrl>R, yeah.
Comment 6 Michael Catanzaro 2014-09-04 21:39:10 UTC
Thanks!

Attachment 285014 [details] pushed as 44e487e - Add <ctrl>N and <ctrl>R shortcuts.