We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea2d2d commit b5ecda6Copy full SHA for b5ecda6
js/app.ts
@@ -2,8 +2,11 @@ import { Elm } from '../elm/Main'
2
import { open } from '@tauri-apps/api/dialog'
3
import { readTextFile, writeFile } from '@tauri-apps/api/fs'
4
import { exit } from '@tauri-apps/api/app'
5
+import { register } from '@tauri-apps/api/globalShortcut'
6
-console.log("START")
7
+register("CmdOrControl+Q", () => {
8
+ exit()
9
+})
10
11
const app = Elm.Main.init({
12
flags: {
0 commit comments