confirm arrow on doubleclick (#949)

* confirm arrow on double click

* change hint

* fix cursor not updating on click
This commit is contained in:
David Luzar 2020-03-18 16:43:06 +01:00 committed by GitHub
parent 254a0753ff
commit b7da524538
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 95 additions and 16 deletions

View file

@ -60,6 +60,16 @@ export class ActionManager implements ActionsManagerInterface {
return true;
}
executeAction(action: Action) {
const commitToHistory =
action.commitToHistory &&
action.commitToHistory(this.getAppState(), this.getElements());
this.updater(
action.perform(this.getElements(), this.getAppState(), null),
commitToHistory,
);
}
getContextMenuItems(actionFilter: ActionFilterFn = action => action) {
return Object.values(this.actions)
.filter(actionFilter)