Skip to content

Commit

Permalink
add option mobileDelete also to terminal #506
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Aug 29, 2019
1 parent f5ad880 commit b80a451
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 10 deletions.
6 changes: 4 additions & 2 deletions js/jquery.terminal-2.7.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* emoji regex v7.0.1 by Mathias Bynens
* MIT license
*
* Date: Thu, 29 Aug 2019 15:16:20 +0000
* Date: Thu, 29 Aug 2019 15:19:15 +0000
*/
/* global location, setTimeout, window, global, sprintf, setImmediate,
IntersectionObserver, ResizeObserver, module, require, define,
Expand Down Expand Up @@ -3933,7 +3933,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Thu, 29 Aug 2019 15:16:20 +0000',
date: 'Thu, 29 Aug 2019 15:19:15 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -5565,6 +5565,7 @@
processRPCResponse: null,
completionEscape: true,
onCommandChange: null,
mobileDelete: is_mobile,
onPositionChange: null,
convertLinks: true,
extra: {},
Expand Down Expand Up @@ -9050,6 +9051,7 @@
// CREATE COMMAND LINE
command_line = $('<div/>').appendTo(wrapper).cmd({
tabindex: settings.tabindex,
mobileDelete: settings.mobileDelete,
mobileIngoreAutoSpace: settings.mobileIngoreAutoSpace,
prompt: global_login_fn ? false : prompt,
history: settings.memory ? 'memory' : settings.history,
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.7.1.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -5565,6 +5565,7 @@
processRPCResponse: null,
completionEscape: true,
onCommandChange: null,
mobileDelete: is_mobile,
onPositionChange: null,
convertLinks: true,
extra: {},
Expand Down Expand Up @@ -9050,6 +9051,7 @@
// CREATE COMMAND LINE
command_line = $('<div/>').appendTo(wrapper).cmd({
tabindex: settings.tabindex,
mobileDelete: settings.mobileDelete,
mobileIngoreAutoSpace: settings.mobileIngoreAutoSpace,
prompt: global_login_fn ? false : prompt,
history: settings.memory ? 'memory' : settings.history,
Expand Down
3 changes: 2 additions & 1 deletion js/jquery.terminal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ type TerminalOption = "prompt" | "name" | "history" | "exit" | "clear" | "enabl
"onPop" | "keypress" | "keydown" | "onAfterRedraw" | "onEchoCommand" | "onFlush" | "strings" |
"repeatTimeoutKeys" | "allowedAttributes" | "doubleTabEchoCommand" | "mobileIngoreAutoSpace" |
"onBeforeCommand" | "onAfterCommand" | "onBeforeLogout" | "onAfterLogout" | "onBeforeLogin" |
"onAfterLogin" | "onBeforeEcho" | "onAfterEcho" | "autocompleteMenu";
"onAfterLogin" | "onBeforeEcho" | "onAfterEcho" | "autocompleteMenu" | "mobileDelete";

type TerminalOptions = {
prompt?: JQueryTerminal.ExtendedPrompt;
Expand Down Expand Up @@ -513,6 +513,7 @@ type TerminalOptions = {
onBeforeEcho?: (this: JQueryTerminal, value: JQueryTerminal.echoValue) => (boolean | void);
onAfterEcho?: (this: JQueryTerminal, value: JQueryTerminal.echoValue) => void;
autocompleteMenu?: boolean;
mobileDelete?: boolean;
strings?: JQueryTerminal.strings;
}

Expand Down
6 changes: 4 additions & 2 deletions js/jquery.terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* emoji regex v7.0.1 by Mathias Bynens
* MIT license
*
* Date: Thu, 29 Aug 2019 15:16:20 +0000
* Date: Thu, 29 Aug 2019 15:19:15 +0000
*/
/* global location, setTimeout, window, global, sprintf, setImmediate,
IntersectionObserver, ResizeObserver, module, require, define,
Expand Down Expand Up @@ -3933,7 +3933,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Thu, 29 Aug 2019 15:16:20 +0000',
date: 'Thu, 29 Aug 2019 15:19:15 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -5565,6 +5565,7 @@
processRPCResponse: null,
completionEscape: true,
onCommandChange: null,
mobileDelete: is_mobile,
onPositionChange: null,
convertLinks: true,
extra: {},
Expand Down Expand Up @@ -9050,6 +9051,7 @@
// CREATE COMMAND LINE
command_line = $('<div/>').appendTo(wrapper).cmd({
tabindex: settings.tabindex,
mobileDelete: settings.mobileDelete,
mobileIngoreAutoSpace: settings.mobileIngoreAutoSpace,
prompt: global_login_fn ? false : prompt,
history: settings.memory ? 'memory' : settings.history,
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 b80a451

Please sign in to comment.