1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-21 23:17:42 +02:00

Desktop: Support "select all" in the note list (#2403)

* Select all notes in note list, block select all in folder and tags lists.

* Adjust key mappings.

* Adjust key mappings.
This commit is contained in:
mic704b
2020-02-05 08:55:06 +11:00
committed by GitHub
parent 8a7e3fe36f
commit 5395d57df8
4 changed files with 48 additions and 4 deletions

View File

@ -394,6 +394,11 @@ const reducer = (state = defaultState, action) => {
}
break;
case 'NOTE_SELECT_ALL':
newState = Object.assign({}, state);
newState.selectedNoteIds = newState.notes.map(n => n.id);
break;
case 'FOLDER_SELECT':
newState = changeSelectedFolder(state, action, { clearSelectedNoteIds: true });
break;