Skip to content

Commit

Permalink
Merge branch 'master' of github.com:liftoff/GateOne
Browse files Browse the repository at this point in the history
  • Loading branch information
liftoff committed Nov 3, 2015
2 parents e436a12 + 17fbf85 commit 777d149
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gateone/applications/terminal/static/terminal_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ GateOne.Base.update(GateOne.Terminal.Input, {
'KEY_8': {'alt': ESC+"8", 'ctrl': String.fromCharCode(32), 'ctrl-shift': String.fromCharCode(32)},
'KEY_9': {'alt': ESC+"9", 'ctrl': "9", 'ctrl-shift': "9"},
'KEY_0': {'alt': ESC+"0", 'ctrl': "0", 'ctrl-shift': "0"},
'KEY_G': {'altgr': "@"},
// NOTE to self: xterm/vt100/vt220, for 'linux' (and possibly others) use [[A, [[B, [[C, [[D, and [[E
'KEY_F1': {'default': ESC+"OP", 'alt': ESC+"O3P", 'sco': ESC+"[M", 'sco-ctrl': ESC+"[k"},
'KEY_F2': {'default': ESC+"OQ", 'alt': ESC+"O3Q", 'sco': ESC+"[N", 'sco-ctrl': ESC+"[l"},
Expand Down Expand Up @@ -1058,9 +1059,9 @@ GateOne.Base.update(GateOne.Terminal.Input, {
'KEY_FULL_STOP': {'alt': ESC+".", 'alt-shift': ESC+">"},
'KEY_SOLIDUS': {'alt': ESC+"/", 'alt-shift': ESC+"?", 'ctrl': String.fromCharCode(31), 'ctrl-shift': String.fromCharCode(31)},
'KEY_GRAVE_ACCENT': {'alt': ESC+"`", 'alt-shift': ESC+"~", 'ctrl-shift': String.fromCharCode(30)},
'KEY_LEFT_SQUARE_BRACKET': {'alt': ESC+"[", 'alt-shift': ESC+"{", 'ctrl': ESC},
'KEY_REVERSE_SOLIDUS': {'alt': ESC+"\\", 'alt-shift': ESC+"|", 'ctrl': String.fromCharCode(28)},
'KEY_RIGHT_SQUARE_BRACKET': {'alt': ESC+"]", 'alt-shift': ESC+"}", 'ctrl': String.fromCharCode(29)},
'KEY_LEFT_SQUARE_BRACKET': {'altgr': "[", 'alt-shift': ESC+"{", 'ctrl': ESC},
'KEY_REVERSE_SOLIDUS': {'altgr': "|", 'altgr-shift': "\\"},
'KEY_RIGHT_SQUARE_BRACKET': {'altgr': "]", 'alt-shift': ESC+"}", 'ctrl': String.fromCharCode(29)},
'KEY_APOSTROPHE': {'alt': ESC+"'", 'alt-shift': ESC+'"'}
}
});
Expand Down
2 changes: 2 additions & 0 deletions gateone/static/gateone_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ GateOne.Base.update(GateOne.Input, {
109: 'KEY_NUM_PAD_HYPHEN-MINUS', // Strange: Firefox has this the regular hyphen key (i.e. not the one on the num pad)
110: 'KEY_NUM_PAD_FULL_STOP',
111: 'KEY_NUM_PAD_SOLIDUS',
123: 'KEY_LEFT_CURLY_BRACKET',
125: 'KEY_RIGHT_CURLY_BRACKET',
144: 'KEY_NUM_LOCK',
145: 'KEY_SCROLL_LOCK',
173: 'KEY_HYPHEN-MINUS', // No idea why Firefox uses this keycode instead of 189
Expand Down

0 comments on commit 777d149

Please sign in to comment.