dai icon indicating copy to clipboard operation
dai copied to clipboard

menu items have no event attached

Open iojanis opened this issue 4 years ago • 2 comments

If you click on New Note instead of the shortcut, nothing happens.

iojanis avatar Oct 24 '21 00:10 iojanis

Yeah, you're right. Ran out of time 🙈

If you wanna give it a shot I'll be happy to merge it in!

laander avatar Oct 26 '21 10:10 laander

You can use

` import { appWindow } from '@tauri-apps/api/window'

appWindow.listen('tauri://menu', ({ event, payload }) => { console.log(event, payload) })`

the payload holds the menu item label

I tried to implement it into your application but it was triggered 4 times on click and I didn't know why.

iojanis avatar Oct 26 '21 19:10 iojanis