Skip to content

Commit

Permalink
πŸ› Sync local storage for escape key
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Jun 24, 2023
1 parent c4ab4bd commit d755a0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SquareEdit/InsertHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { EditorAction, InsertAction } from '../Types';
import * as d3 from 'd3';
import { getSVGRelCoords, isOutOfSVGBounds, Point } from '../utils/Coordinates';
import { queueNotification } from '../utils/Notification';
import { setSettings } from '../utils/LocalSettings';

/**
* Class that handles insert mode, events, and actions.
Expand Down Expand Up @@ -160,6 +161,8 @@ class InsertHandler {

insertPanel.querySelector('.side-panel-btn.insertel.is-active').classList.add('unfocused');
editPanel.querySelector('.side-panel-btn.sel-by.is-active').classList.remove('unfocused');

setSettings({ userMode: 'edit' });

}).bind(this);

Expand Down

0 comments on commit d755a0d

Please sign in to comment.