]> granicus.if.org Git - nethack/commitdiff
number_pad:-1 qwertz keyboard
authorPatR <rankin@nethack.org>
Sat, 28 May 2016 01:39:17 +0000 (18:39 -0700)
committerPatR <rankin@nethack.org>
Sat, 28 May 2016 01:39:17 +0000 (18:39 -0700)
Reported almost exactly one year ago by a beta tester proofreading
the Guidebook, the number_pad setting to support the German keyboard
which swaps the Y and Z keys is for a keyboard that is used in other
places too.  The report mentioned France and Belgium; Wikipedia's
"keyboard layout" entry mentions "Germany, Austria, Switzerland and
other parts of Central Europe".  This changes references to "German
keyboard" (there were only a couple) into "QWERTZ keyboard".

doc/Guidebook.mn
doc/Guidebook.tex
include/flag.h
src/cmd.c

index 1666c19c5f09952e3d66f7d1a61af45d9e9230c3..fb73c4de2861d52859e886f24053ef06b46ed992 100644 (file)
@@ -2388,7 +2388,7 @@ is the same as specifying 0.
 (Settings 2 and 4 are for compatibility with MSDOS or old PC Hack;
 in addition to the different behavior for `5', `Alt-5' acts as `G'
 and `Alt-0' acts as `I'.
-Setting -1 is to accommodate some German keyboards which have the
+Setting -1 is to accommodate some QWERTZ keyboards which have the
 location of the `y' and `z' keys swapped.)
 When moving by numbers, to enter a count prefix for those commands
 which accept one (such as ``12s'' to search twelve times), precede it
index 45e01089384f7436d9109863fd9496226f15c5b3..55c9960bcc5bca4b943d7f444416012683622b47 100644 (file)
@@ -2845,7 +2845,7 @@ is the same as specifying {\tt 0}.
 (Settings {\tt 2} and {\tt 4} are for compatibility with MSDOS or old PC Hack;
 in addition to the different behavior for `{\tt 5}', `{\tt Alt-5}' acts as `{\tt G}'
 and `{\tt Alt-0}' acts as `{\tt I}'.
-Setting {\tt -1} is to accommodate some German keyboards which have the
+Setting {\tt -1} is to accommodate some QWERTZ keyboards which have the
 location of the `{\tt y}' and `{\tt z}' keys swapped.)
 When moving by numbers, to enter a count prefix for those commands
 which accept one (such as ``{\tt 12s}'' to search twelve times), precede it
index 4136070aba52a0aa45f8128b798402aa1611a723..4480b43b3264f25e2f007676d0f2b91471f9a471 100644 (file)
@@ -434,7 +434,7 @@ struct cmd {
     boolean num_pad;       /* same as iflags.num_pad except during updates */
     boolean pcHack_compat; /* for numpad:  affects 5, M-5, and M-0 */
     boolean phone_layout;  /* inverted keypad:  1,2,3 above, 7,8,9 below */
-    boolean swap_yz;       /* German keyboards; use z to move NW, y to zap */
+    boolean swap_yz;       /* QWERTZ keyboards; use z to move NW, y to zap */
     char move_W, move_NW, move_N, move_NE, move_E, move_SE, move_S, move_SW;
     const char *dirchars;      /* current movement/direction characters */
     const char *alphadirchars; /* same as dirchars if !numpad */
index b4e1266046092eeba2eb702ee5937f02798ecc17..d33d3c4316a16cb1e092a09dd00bdd62981a48f7 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -3350,7 +3350,8 @@ boolean initial;
             Cmd.num_pad = flagtemp;
             ++updated;
         }
-        /* swap_yz mode (only applicable for !num_pad) */
+        /* swap_yz mode (only applicable for !num_pad); intended for
+           QWERTZ keyboard used in Central Europe, particularly Germany */
         flagtemp = (iflags.num_pad_mode & 1) ? !Cmd.num_pad : FALSE;
         if (flagtemp != Cmd.swap_yz) {
             Cmd.swap_yz = flagtemp;