From 741da1198c0bcb988928f232b8b381a20fa70ae6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2024 20:51:19 +0000 Subject: [PATCH 1/3] Bump rollup from 3.29.4 to 3.29.5 Bumps [rollup](https://github.com/rollup/rollup) from 3.29.4 to 3.29.5. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v3.29.4...v3.29.5) --- updated-dependencies: - dependency-name: rollup dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yarn.lock b/yarn.lock index 815abded..1c7537a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3618,8 +3618,8 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: inherits "^2.0.1" rollup@^3.27.1: - version "3.29.4" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.4.tgz#4d70c0f9834146df8705bfb69a9a19c9e1109981" + version "3.29.5" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.5.tgz#8a2e477a758b520fb78daf04bca4c522c1da8a54" optionalDependencies: fsevents "~2.3.2" From fbf54a6afa4334f14cd2b2c99cd3526019c55838 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 23:26:05 +0000 Subject: [PATCH 2/3] Bump elliptic from 6.5.7 to 6.6.0 Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.7 to 6.6.0. - [Commits](https://github.com/indutny/elliptic/compare/v6.5.7...v6.6.0) --- updated-dependencies: - dependency-name: elliptic dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1c7537a0..de482f4e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1384,8 +1384,8 @@ electron-to-chromium@^1.4.71: resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.72.tgz" elliptic@^6.0.0, elliptic@^6.5.4: - version "6.5.7" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.7.tgz#8ec4da2cb2939926a1b9a73619d768207e647c8b" + version "6.6.0" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.6.0.tgz#5919ec723286c1edf28685aa89261d4761afa210" dependencies: bn.js "^4.11.9" brorand "^1.1.0" From fe7c6563a9eb405ccb135849fb832ed8fdcfb581 Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Tue, 12 Nov 2024 09:28:58 -0500 Subject: [PATCH 3/3] Resolves #1194 again -- do alt and backspace --- src/js/views/commandViews.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/js/views/commandViews.js b/src/js/views/commandViews.js index ba5561f9..9599ce5c 100644 --- a/src/js/views/commandViews.js +++ b/src/js/views/commandViews.js @@ -109,8 +109,14 @@ var CommandPromptView = Backbone.View.extend({ el.selectionStart = el.selectionEnd = 0; } - // Handle Ctrl+Backspace to delete last word - if ((e.keyCode === 8 || e.keyCode === 87) && e.ctrlKey && e.type === 'keydown') { + // handle control + W to delete up to previous word + const isDeleteWord = ( + e.keyCode === 87 && e.ctrlKey && e.type === 'keydown' + ) || ( + // handle alt + backspace to delete up to previous word + e.keyCode === 8 && e.altKey && e.type === 'keydown' + ); + if (isDeleteWord) { e.preventDefault(); const cursorPos = el.selectionStart; const textBeforeCursor = el.value.substring(0, cursorPos);