Skip to content

Commit

Permalink
Refactored keyboard input slightly to remove the use of KEY_ since it…
Browse files Browse the repository at this point in the history
… is no longer necessary and was interfering with F-keys working properly in modern browsers.
  • Loading branch information
liftoff committed Oct 12, 2017
1 parent 07f34f6 commit a3f7aeb
Show file tree
Hide file tree
Showing 6 changed files with 311 additions and 310 deletions.
2 changes: 1 addition & 1 deletion gateone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__version_info__ = (1, 2, 0)
__license__ = "AGPLv3" # ...or proprietary (see LICENSE.txt)
__author__ = 'Dan McDougall <[email protected]>'
__commit__ = "20170623083757" # Gets replaced by git (holds the date/time)
__commit__ = "20170623083842" # Gets replaced by git (holds the date/time)

import os
GATEONE_DIR = os.path.dirname(os.path.abspath(__file__))
Expand Down
6 changes: 3 additions & 3 deletions gateone/applications/terminal/static/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ go.Base.update(GateOne.Terminal, {
paste: function(e) {
/**:GateOne.Terminal.paste(e)
This gets attached to Shift-Insert (KEY_INSERT) as a shortcut in order to support pasting.
This gets attached to Shift-Insert (INSERT) as a shortcut in order to support pasting.
*/
logDebug('paste()');
var tempPaste = u.createElement('textarea', {'class': '✈temppaste', 'style': {'position': 'fixed', 'top': '-100000px', 'left': '-100000px', 'opacity': 0}});
Expand Down Expand Up @@ -3279,14 +3279,14 @@ go.Base.update(GateOne.Terminal, {
shareIDInput.addEventListener('keydown', function(e) {
var key = go.Input.key(e);
apply.style.display = '';
if (key.string == "KEY_ENTER") {
if (key.string == "ENTER") {
saveFunc();
}
}, false);
password.addEventListener('keydown', function(e) {
var key = go.Input.key(e);
apply.style.display = '';
if (key.string == "KEY_ENTER") {
if (key.string == "ENTER") {
saveFunc();
}
}, false);
Expand Down
Loading

0 comments on commit a3f7aeb

Please sign in to comment.