Skip to content

Commit b502968

Browse files
committed
fix: Handle aborting moves.
1 parent 0a0bc47 commit b502968

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/actions/mover.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export class Mover {
162162
utils.KeyCodes.UP,
163163
utils.KeyCodes.DOWN,
164164
utils.KeyCodes.ENTER,
165+
utils.KeyCodes.ESC,
165166
].includes(
166167
typeof keyCode === 'number'
167168
? keyCode
@@ -235,6 +236,7 @@ export class Mover {
235236
* @returns True iff move successfully aborted.
236237
*/
237238
abortMove(workspace: WorkspaceSvg) {
239+
ShortcutRegistry.registry.unregister(COMMIT_MOVE_SHORTCUT);
238240
clearMoveHints(workspace);
239241

240242
const info = this.moves.get(workspace);

0 commit comments

Comments
 (0)