mirror of
https://github.com/heyman/heynote.git
synced 2025-08-17 18:11:12 +02:00
Add menu item to open "Move block" dialog
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
const { app, Menu } = require("electron")
|
||||
import { OPEN_SETTINGS_EVENT, REDO_EVENT } from '@/src/common/constants'
|
||||
import { OPEN_SETTINGS_EVENT, REDO_EVENT, MOVE_BLOCK_EVENT } from '@/src/common/constants'
|
||||
import { openAboutWindow } from "./about";
|
||||
import { quit } from "./index"
|
||||
|
||||
@ -63,13 +63,19 @@ const template = [
|
||||
label: 'Edit',
|
||||
submenu: [
|
||||
{ role: 'undo' },
|
||||
//{ role: 'undo' },
|
||||
{
|
||||
label: 'Redo',
|
||||
accelerator: 'CommandOrControl+Shift+z',
|
||||
click: (menuItem, window, event) => {
|
||||
window?.webContents.send(REDO_EVENT)
|
||||
console.log("redo")
|
||||
},
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: 'Move block to another buffer...',
|
||||
accelerator: 'CommandOrControl+S',
|
||||
click: (menuItem, window, event) => {
|
||||
window?.webContents.send(MOVE_BLOCK_EVENT)
|
||||
},
|
||||
},
|
||||
{ type: 'separator' },
|
||||
|
Reference in New Issue
Block a user