Trash icon now clears selection first
This commit is contained in:
parent
c51c6631e1
commit
4c876d3d35
1 changed files with 5 additions and 1 deletions
|
@ -159,7 +159,11 @@ const state = createState({
|
|||
NUDGED: { do: 'nudgeSelection' },
|
||||
USED_PEN_DEVICE: 'enablePenLock',
|
||||
DISABLED_PEN_LOCK: 'disablePenLock',
|
||||
CLEARED_PAGE: ['selectAll', 'deleteSelection'],
|
||||
CLEARED_PAGE: {
|
||||
if: 'hasSelection',
|
||||
do: 'deleteSelection',
|
||||
else: ['selectAll', 'deleteSelection'],
|
||||
},
|
||||
CHANGED_CURRENT_PAGE: ['clearSelectedIds', 'setCurrentPage'],
|
||||
CREATED_PAGE: ['clearSelectedIds', 'createPage'],
|
||||
DELETED_PAGE: { unless: 'hasOnlyOnePage', do: 'deletePage' },
|
||||
|
|
Loading…
Reference in a new issue