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 126284 - Suggestion: keyboard shortcuts
Suggestion: keyboard shortcuts
Status: RESOLVED OBSOLETE
Product: gnome-games-superseded
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-games-general-maint
GNOME Games maintainers
: 339070 (view as bug list)
Depends on: 565585
Blocks:
 
 
Reported: 2003-11-05 14:14 UTC by Allan Jensen
Modified: 2012-11-14 01:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glines keyboardability patch. Movement keys are arrows, home, end, pgup, pgdn and their keypad counterparts; space and Enter have the same effect as clicking on a cell. (4.30 KB, patch)
2004-10-09 21:31 UTC, Anton Gavrilov
committed Details | Review

Description Allan Jensen 2003-11-05 14:14:46 UTC
Would it be possible to add keyboard shortcuts for 
turning the dices into pumpkins and back as well 
as rolling the dices?

Perhaps the number keys to (un)tag and RETURN or 
SPACE to roll?
Comment 1 Callum McKenzie 2003-11-06 03:07:47 UTC
Yeah, this needs to be done. In fact there needs to be keyboard
short-cuts in a lot more of the games, for accessibility purposes if
nothing else.

Comment 2 Callum McKenzie 2003-11-06 07:00:00 UTC
I'm hijacking this bug to make it a running list of all gnome-games
that require keyboard functionality. The list is currently:

aisleriot
blackjack
gataxx
glines
gnomine
gnotravex
gnotski
gtali
iagno
mahjongg
same-gnome

Comment 3 Callum McKenzie 2003-11-06 07:58:37 UTC
Gtali has noew been done (as per your suggestion) in CVS.

This leaves:

aisleriot
blackjack
gataxx
glines
gnomine
gnotravex
gnotski
iagno
mahjongg
same-gnome






Comment 4 William Jon McCann 2003-11-06 15:24:56 UTC
Blackjack has some. Though they are not documented, configurable, or
possibly even intuitive.

Currently:
  switch (key) {
  case KEY_S :
    bj_hand_stand ();
    break;
  case KEY_H :
    bj_hand_hit_with_delay ();
    break;
  case KEY_D :
    bj_hand_double ();
    break;
  case KEY_P :
    bj_hand_split ();
    break;
  case KEY_R :
    bj_hand_surrender ();
    break;
  case KEY_ENTER :
    bj_hand_new_deal ();
    break;
  default:
    break;
  }

It should be simple to make these configurable via the preferences dialog.
Comment 5 Callum McKenzie 2003-11-06 22:05:04 UTC
Configuration is not important. Keeping them simple and semi-intuitive
is (although mnemonic keys will always fail i18n so we can't ever
win). If you could document those keys we can happily remove blackjack
from the list. 
Comment 6 William Jon McCann 2003-11-13 21:33:34 UTC
Some (crude) documentation has been added to Blackjack in CVS.
Comment 7 Anton Gavrilov 2004-10-07 11:27:56 UTC
If no one has started on these yet, I'll be happy to add keyboardability to
glines, gnomine and iagno.

Proposed functionality: arrow and numpad keys to move around, space (and also
num5?) is the action button.  When one of the movement keys is pressed, a
selection rectangle appears; clicking on the game field with the mouse hides it.
In gnomine, M or Insert (?) toggles the "mine here" flag.
Comment 8 Callum McKenzie 2004-10-07 21:46:18 UTC
Go for it Anton. I'm doing same-gnome as part of the rewrite and the behaviour
there is going to be the same as what you propose. 

For gnomine it might be better to use space for toggle and enter for reveal.
i.e. use the big keys. Also putting the binding on the keypad keys is definitely
a good idea (it can't be just the keypad though because laptops often don't have
them in any meaningful sense).

If you do work on iagno, it might be better to have a look at gataxx instead. At
some point I want to merge the two code-bases and gataxx has better
encapsulation of the drawing functions.
Comment 9 Anton Gavrilov 2004-10-09 21:31:55 UTC
Created attachment 32436 [details] [review]
glines keyboardability patch.  Movement keys are arrows, home, end, pgup, pgdn and their keypad counterparts;  space and Enter have the same effect as clicking on a cell.

I'm no artist (nor a GDK guru), so the keyboard selection is indicated by an
ugly white rectangle around a cell.

Make sure you fix bug #154982, or it will render incorrectly in the rightmost
column and the bottommost row of cells.
Comment 10 Alan Horkan 2004-10-11 16:34:37 UTC
i was thinking that if Pause is used for Pause Game then End should be used for
End Game to keep things consistant (I only have Gnome 2.6 instead of 2.8 on this
machine so please forgive me if this has been changed already, but I noticed a
while ago that Gnometris in 2.8 didn't have a keybinding for End Game).  
If possible I'd like for Ctrl+W to also be possible making "End Game" analgous
to "Close Document" in more file orientated applications, but i think
consistancey with the other games is a more important priority.  
Comment 11 Calum Benson 2004-10-21 16:39:58 UTC
Apologies for spam-- ensuring Sun a11y team are cc'ed on all current a11y bugs.
 Filter on "SUN A11Y SPAM" to ignore.
Comment 12 Callum McKenzie 2004-11-18 09:38:02 UTC
I have finally applied Anton's patch (sorry about the delay Anton, thank Richard
for prodding me). I am also working on same-gnome keyboard support in the
rewrite. So the list is now:

aisleriot
gataxx
gnomine
gnotravex
gnotski
iagno
mahjongg
same-gnome (half-done)
Comment 13 Callum McKenzie 2004-12-22 10:27:59 UTC
Same Gnome keyboard support is now implemented. The list is now:

aisleriot
gataxx
gnomine
gnotravex
gnotski
iagno
mahjongg
Comment 14 Alan Horkan 2005-09-08 12:35:14 UTC
Richard pointed to this bug as covering my request in bug 315489 suggesting
there was a need to have a keyboard shortcut (preferably made clearly visible
using a a menu item) to deal the next card from the Foundation.  Adding this
comment to try and help prevent the issue being forgotten.  
Comment 15 Richard Hoelscher 2006-01-16 03:21:32 UTC
*** Bug 316220 has been marked as a duplicate of this bug. ***
Comment 16 Richard Hoelscher 2006-01-16 03:25:29 UTC
Bug #315489 and Bug #316220 (mentioned in Comment #14 and Comment #15 ) are things we would probably do anyway when it comes time to implement Aisleriot keyboard navigation.
Comment 17 Callum McKenzie 2006-04-25 00:25:45 UTC
*** Bug 339070 has been marked as a duplicate of this bug. ***
Comment 18 Calum Benson 2006-04-26 17:08:30 UTC
Apologies for spam... ensuring Sun a11y folks are cc'ed on all current accessibility bugs.
Comment 19 Christian Persch 2008-01-13 22:10:16 UTC
Aisleriot is done; that leaves the following games:

gataxx
gnomine
gnotravex
gnotski
iagno
mahjongg
Comment 20 Christian Persch 2008-03-25 12:06:41 UTC
Re-assigning to new default owner.
Comment 21 Robert Ancell 2008-12-24 23:46:49 UTC
glchess bug #565585 
Comment 22 Dan Whitman 2010-04-02 13:58:27 UTC
What keyboard shortcuts would people like to see in gnotravex? It seems like an entirely mouse driven game.
Comment 23 Robert Ancell 2010-04-03 00:34:05 UTC
Dan, gnotravex should be playable without a mouse (mainly for a11y reasons).

You should be able to move between the pieces with arrow and tab keys and select them with space or enter.  When selected draw the piece so it looks above the board (offset and maybe drop shadow).  Then move to designated place and drop with space/enter (escape to cancel).
Comment 24 Robert Ancell 2012-11-14 01:33:40 UTC
Please open against each game if still required.