merge main

This commit is contained in:
Peter Cottle 2024-11-12 09:29:07 -05:00
commit 65f024d344
2 changed files with 12 additions and 6 deletions

View file

@ -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);

View file

@ -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"
@ -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"