Skip to content

Commit

Permalink
Fix arrows in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 7, 2017
1 parent 3f25ffa commit 1e56e41
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
@@ -1,6 +1,6 @@
1.0.2 fix CTRL+V in Firefox and IE
fix issue in jQuery >= 3.0
fix space, backspace and resize in IE
fix space, backspace, resize and arrows in IE
fix middle mouse paste on GNU/Linux
1.0.1 fix signature
1.0.0 copy to system clipboard when copy to kill area
Expand Down
6 changes: 5 additions & 1 deletion js/jquery.terminal-1.0.1.js
Expand Up @@ -31,7 +31,7 @@
* Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro>
* licensed under 3 clause BSD license
*
* Date: Tue, 07 Feb 2017 21:34:37 +0000
* Date: Tue, 07 Feb 2017 21:56:29 +0000
*/

/* TODO:
Expand Down Expand Up @@ -1021,10 +1021,13 @@
return true;
},
'ARROWUP': prev_history,
'UP': prev_history,
'CTRL+P': prev_history,
'ARROWDOWN': next_history,
'DOWN': next_history, // IE
'CTRL+N': next_history,
'ARROWLEFT': left,
'LEFT': left, // IE
'CTRL+B': left,
'CTRL+ARROWLEFT': function() {
// jump to one character after last space before prevoius word
Expand Down Expand Up @@ -1070,6 +1073,7 @@
}
},
'ARROWRIGHT': right,
'RIGHT': right,
'CTRL+F': right,
'CTRL+ARROWRIGHT': function() {
// jump to beginning or end of the word
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal-1.0.1.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions js/jquery.terminal-src.js
Expand Up @@ -1021,10 +1021,13 @@
return true;
},
'ARROWUP': prev_history,
'UP': prev_history,
'CTRL+P': prev_history,
'ARROWDOWN': next_history,
'DOWN': next_history, // IE
'CTRL+N': next_history,
'ARROWLEFT': left,
'LEFT': left, // IE
'CTRL+B': left,
'CTRL+ARROWLEFT': function() {
// jump to one character after last space before prevoius word
Expand Down Expand Up @@ -1070,6 +1073,7 @@
}
},
'ARROWRIGHT': right,
'RIGHT': right,
'CTRL+F': right,
'CTRL+ARROWRIGHT': function() {
// jump to beginning or end of the word
Expand Down
6 changes: 5 additions & 1 deletion js/jquery.terminal.js
Expand Up @@ -31,7 +31,7 @@
* Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro>
* licensed under 3 clause BSD license
*
* Date: Tue, 07 Feb 2017 21:34:37 +0000
* Date: Tue, 07 Feb 2017 21:56:29 +0000
*/

/* TODO:
Expand Down Expand Up @@ -1021,10 +1021,13 @@
return true;
},
'ARROWUP': prev_history,
'UP': prev_history,
'CTRL+P': prev_history,
'ARROWDOWN': next_history,
'DOWN': next_history, // IE
'CTRL+N': next_history,
'ARROWLEFT': left,
'LEFT': left, // IE
'CTRL+B': left,
'CTRL+ARROWLEFT': function() {
// jump to one character after last space before prevoius word
Expand Down Expand Up @@ -1070,6 +1073,7 @@
}
},
'ARROWRIGHT': right,
'RIGHT': right,
'CTRL+F': right,
'CTRL+ARROWRIGHT': function() {
// jump to beginning or end of the word
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

0 comments on commit 1e56e41

Please sign in to comment.