Skip to content

Commit

Permalink
Make C-w call hide
Browse files Browse the repository at this point in the history
  • Loading branch information
kakakaya committed Feb 19, 2024
1 parent edd7d08 commit 14579de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ func main() {
FileMenu.AddText("沈没", keys.CmdOrCtrl("q"), func(_ *menu.CallbackData) {
runtime.Quit(app.ctx)
})
FileMenu.AddText("雲隠", keys.CmdOrCtrl("w"), func(_ *menu.CallbackData) {
runtime.Hide(app.ctx)
})
FileMenu.AddText("Post", keys.CmdOrCtrl("Enter"), func(_ *menu.CallbackData) {
runtime.EventsEmit(app.ctx, "call-post")
})
Expand Down

0 comments on commit 14579de

Please sign in to comment.