mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix ctrl-w functionality
This commit is contained in:
@@ -433,6 +433,9 @@ class TextAreaInput extends React.Component<{ onHeightChange: () => void }, {}>
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (cutSpot == -1) {
|
||||
cutSpot = 0;
|
||||
}
|
||||
let cutValue = value.slice(cutSpot, selStart);
|
||||
let prevValue = value.slice(0, cutSpot);
|
||||
let restValue = value.slice(selStart);
|
||||
|
||||
Reference in New Issue
Block a user