[windows] Support more accelerator keys

This commit is contained in:
Lea Anthony
2021-07-18 13:11:15 +10:00
parent fee14babbc
commit b86d2fe8cd
3 changed files with 93 additions and 26 deletions

View File

@@ -136,6 +136,7 @@ func createApplicationMenu(hwnd uintptr) {
//export handleKeypressInGo
func handleKeypressInGo(keycode uint16, modifiers uint8) {
//fmt.Printf("Key code: %#x\n", keycode)
menuID, menuType := getCallbackForKeyPress(keycode, modifiers)
if menuID == "" {
return