mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
ability to define a keyboard shortcut for paste markdown, closes #761
This commit is contained in:
@@ -132,6 +132,12 @@ function registerEntrypoints() {
|
||||
|
||||
$("#open-dev-tools-button").toggle(utils.isElectron());
|
||||
|
||||
keyboardActionService.setGlobalActionHandler("PasteMarkdownIntoText", async () => {
|
||||
const dialog = await import("../dialogs/markdown_import.js");
|
||||
|
||||
dialog.importMarkdownInline();
|
||||
});
|
||||
|
||||
if (utils.isElectron()) {
|
||||
const openDevTools = () => {
|
||||
require('electron').remote.getCurrentWindow().toggleDevTools();
|
||||
|
||||
Reference in New Issue
Block a user