mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 02:31:58 +08:00
uncomment PostMessage
This commit is contained in:
parent
a148c67df0
commit
be5f7ceb0e
@ -279,6 +279,7 @@ func (f *Frontend) setupChromium() {
|
||||
//acceleratorsWebviewShouldProcess := slicer.Int([]int{ctrlV, ctrlC, ctrlX, ctrlZ, ctrlA, arrowLeft, arrowRight, arrowUp, arrowDown, keyDel})
|
||||
|
||||
chromium.AcceleratorKeyCallback = func(vkey uint) bool {
|
||||
w32.PostMessage(f.mainWindow.Handle(), w32.WM_KEYDOWN, uintptr(vkey), 0)
|
||||
return false
|
||||
|
||||
//// We want webview to handle ctrl-C, ctrl-Z, ctrl-v, ctrl-x
|
||||
@ -286,7 +287,7 @@ func (f *Frontend) setupChromium() {
|
||||
// return false
|
||||
//}
|
||||
//// Post keypress
|
||||
//w32.PostMessage(f.mainWindow.Handle(), w32.WM_KEYDOWN, uintptr(vkey), 0)
|
||||
|
||||
//return true
|
||||
}
|
||||
chromium.Embed(f.mainWindow.Handle())
|
||||
|
Loading…
Reference in New Issue
Block a user