Skip to content

Commit

Permalink
Zoom page when using mousewheel + CTRL key (browser default) #468
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Apr 5, 2019
1 parent 357d16e commit d22f2d1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@
* add $.terminal.pipe function
* allow to return string from onPaste (not only a promise)
* add CTRL+Home and CTRL+End keys + HOME and END move cursor to the end and beginning of the line [#479](https://github.com/jcubic/jquery.terminal/issues/479)
* Zoom page when using mousewheel + CTRL key (browser default) [#468](https://github.com/jcubic/jquery.terminal/issues/468)
### Bugfix
* fix selecting whole text of single .cmd line
* fix double call of async prompt with async interpreter [#474](https://github.com/jcubic/jquery.terminal/issues/474)
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal-2.2.0.js
Expand Up @@ -35,7 +35,7 @@
* emoji regex v7.0.1 by Mathias Bynens
* MIT license
*
* Date: Fri, 05 Apr 2019 13:45:55 +0000
* Date: Fri, 05 Apr 2019 15:02:18 +0000
*/
/* global location, setTimeout, window, global, sprintf, setImmediate,
IntersectionObserver, ResizeObserver, module, require, define,
Expand Down Expand Up @@ -3500,7 +3500,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Fri, 05 Apr 2019 13:45:55 +0000',
date: 'Fri, 05 Apr 2019 15:02:18 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -8758,7 +8758,7 @@
if (ret === true) {
return;
}
if (have_scrollbar() || ret === false) {
if (have_scrollbar() || ret === false || !event.ctrlKey) {
event.stopPropagation();
event.preventDefault();
}
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.2.0.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal-src.js
Expand Up @@ -8758,7 +8758,7 @@
if (ret === true) {
return;
}
if (have_scrollbar() || ret === false) {
if (have_scrollbar() || ret === false || !event.ctrlKey) {
event.stopPropagation();
event.preventDefault();
}
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal.js
Expand Up @@ -35,7 +35,7 @@
* emoji regex v7.0.1 by Mathias Bynens
* MIT license
*
* Date: Fri, 05 Apr 2019 13:45:55 +0000
* Date: Fri, 05 Apr 2019 15:02:18 +0000
*/
/* global location, setTimeout, window, global, sprintf, setImmediate,
IntersectionObserver, ResizeObserver, module, require, define,
Expand Down Expand Up @@ -3500,7 +3500,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Fri, 05 Apr 2019 13:45:55 +0000',
date: 'Fri, 05 Apr 2019 15:02:18 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -8758,7 +8758,7 @@
if (ret === true) {
return;
}
if (have_scrollbar() || ret === false) {
if (have_scrollbar() || ret === false || !event.ctrlKey) {
event.stopPropagation();
event.preventDefault();
}
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit d22f2d1

Please sign in to comment.