1# def-keys -- default client keybindings 2# 3# This file contains a set of default client keybindings. It is converted into 4# a C header file at build time and parsed by the client when a key file isn't 5# found in the user's home folder or a default system location. 6# 7# <keysym> <keynro> <flags> <string> 8# 9# <keynro> will typically be the keycode for that key. While 10# keysyms are defined to work across different servers, keycodes are 11# server/machine specific. Keycodes are only needed because some keyboards 12# (sun's type 5 for one) have keys with no corresponding keysym. 13# When loading, all keysyms are converted to keycodes for matching. 14# 15# Flags: 16# N - Normal mode 17# F - Fire mode 18# R - Run mode 19# A - All modes 20# E - Leave in line edit mode 21 22#### Basic Keys #### 23# The trailing space on the following two lines are intentional. 24quotedbl 1 AE say 25Return 1 AE chat 26 27comma 1 A take 28period 1 N stay fire 29question 1 A help 30 31a 1 N apply 32d 1 N disarm 33e 1 NR examine 34s 1 F brace 35s 1 N search 36t 1 N ready_skill throwing 37 38#### Cursor (Directional Keys) #### 39# Nethack-Style 40b 1 N southwest 41h 1 N west 42j 1 N south 43k 1 N north 44l 1 N east 45n 1 N southeast 46u 1 N northeast 47y 1 N northwest 48 49b 1 R southwest 50h 1 R west 51j 1 R south 52k 1 R north 53l 1 R east 54n 1 R southeast 55u 1 R northeast 56y 1 R northwest 57 58b 1 F southwest 59h 1 F west 60j 1 F south 61k 1 F north 62l 1 F east 63n 1 F southeast 64u 1 F northeast 65y 1 F northwest 66 67# Arrow Keys 68Up 1 A north 69Down 1 A south 70Left 1 A west 71Right 1 A east 72 73# Number Pad Arrow Keys 74KP_8 1 A north 75KP_2 1 A south 76KP_4 1 A west 77KP_6 1 A east 78KP_7 1 A northwest 79KP_9 1 A northeast 80KP_5 1 A stay 81KP_1 1 A southwest 82KP_3 1 A southeast 83 84# Windows reports Home, End, etc. as not separate from their non-keypad equivalents. 85# These appear over the numpad keys when attempting to fire diagonally. 86# With NumLock off, the following 8 bindings suffice. 87End 1 F southwest f 88Home 1 F northwest f 89PgUp 1 F northeast f 90PgDown 1 F southeast f 91End 1 N southwest 92Home 1 N northwest 93Page_Up 1 N northeast 94Page_Down 1 N southeast 95End 1 R southwest 96Home 1 R northwest 97Page_Up 1 R northeast 98Page_Down 1 R southeast 99 100# Keys for Sun Type 4 Keyboards 101KP_Up 1 A north 102KP_Down 1 A south 103KP_Right 1 A east 104KP_Left 1 A west 105KP_Home 1 A northwest 106KP_Prior 1 A northeast 107#Unfortunately, there is no name for the middle key. 108#KP_5 1 A stay 109KP_End 1 A southwest 110KP_Next 1 A southeast 111 112#### Action Rotation #### 113KP_Add 1 A rotateshoottype 114KP_Subtract 1 A rotateshoottype - 115minus 1 N rotateshoottype -1 116plus 1 NF rotateshoottype 117