Skip to content

Commit

Permalink
Use keymap for CMD+`, CMD+r and CMD+l
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 25, 2017
1 parent 94c5161 commit f55cf16
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 28 deletions.
8 changes: 1 addition & 7 deletions js/jquery.terminal-1.0.6.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro>
* licensed under 3 clause BSD license
*
* Date: Sat, 25 Feb 2017 10:42:29 +0000
* Date: Sat, 25 Feb 2017 10:43:02 +0000
*/

/* TODO:
Expand Down Expand Up @@ -1602,12 +1602,6 @@
if (e.which !== 38 && !(e.which === 80 && e.ctrlKey)) {
first_up_history = true;
}
if (e.metaKey && [192, 82, 76].indexOf(e.which) != -1) {
// 192 - CMD+` switch browser window on Mac
// 82 - CMD+r page reload in Chrome Mac
// 76 - CMD+l jump into Ominbox on Chrome Mac
return;
}
// arrows / Home / End / ENTER
if (reverse_search && (e.which === 35 || e.which === 36 ||
e.which === 37 || e.which === 38 ||
Expand Down
8 changes: 4 additions & 4 deletions js/jquery.terminal-1.0.6.min.js

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -1602,12 +1602,6 @@
if (e.which !== 38 && !(e.which === 80 && e.ctrlKey)) {
first_up_history = true;
}
if (e.metaKey && [192, 82, 76].indexOf(e.which) != -1) {
// 192 - CMD+` switch browser window on Mac
// 82 - CMD+r page reload in Chrome Mac
// 76 - CMD+l jump into Ominbox on Chrome Mac
return;
}
// arrows / Home / End / ENTER
if (reverse_search && (e.which === 35 || e.which === 36 ||
e.which === 37 || e.which === 38 ||
Expand Down
8 changes: 1 addition & 7 deletions js/jquery.terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro>
* licensed under 3 clause BSD license
*
* Date: Sat, 25 Feb 2017 10:42:29 +0000
* Date: Sat, 25 Feb 2017 10:43:02 +0000
*/

/* TODO:
Expand Down Expand Up @@ -1602,12 +1602,6 @@
if (e.which !== 38 && !(e.which === 80 && e.ctrlKey)) {
first_up_history = true;
}
if (e.metaKey && [192, 82, 76].indexOf(e.which) != -1) {
// 192 - CMD+` switch browser window on Mac
// 82 - CMD+r page reload in Chrome Mac
// 76 - CMD+l jump into Ominbox on Chrome Mac
return;
}
// arrows / Home / End / ENTER
if (reverse_search && (e.which === 35 || e.which === 36 ||
e.which === 37 || e.which === 38 ||
Expand Down
8 changes: 4 additions & 4 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

0 comments on commit f55cf16

Please sign in to comment.