mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-26 17:42:29 +08:00
feat(keyboard_actions): add shortcut for creating new split
This commit is contained in:
parent
b91b243432
commit
53225c02b4
@ -213,6 +213,10 @@ export default class Entrypoints extends Component {
|
||||
this.hideAllPopups();
|
||||
}
|
||||
|
||||
createNewSplitCommand() {
|
||||
appContext.triggerCommand("openNewNoteSplit");
|
||||
}
|
||||
|
||||
async forceSaveRevisionCommand() {
|
||||
const noteId = appContext.tabManager.getActiveContextNoteId();
|
||||
|
||||
|
@ -304,7 +304,12 @@ function getDefaultKeyboardActions() {
|
||||
description: t("keyboard_actions.last-tab"),
|
||||
scope: "window"
|
||||
},
|
||||
|
||||
{
|
||||
actionName: "createNewSplit",
|
||||
defaultShortcuts: [],
|
||||
description: t("keyboard_actions.create-new-split"),
|
||||
scope: "window"
|
||||
},
|
||||
{
|
||||
separator: t("keyboard_actions.dialogs")
|
||||
},
|
||||
|
@ -46,6 +46,7 @@ const enum KeyboardActionNamesEnum {
|
||||
eigthTab,
|
||||
ninthTab,
|
||||
lastTab,
|
||||
createNewSplit,
|
||||
showNoteSource,
|
||||
showOptions,
|
||||
showRevisions,
|
||||
|
Loading…
x
Reference in New Issue
Block a user