Skip to content

Commit 1cdb252

Browse files
authored
Merge pull request #168 from zephylac/feature/hide_no_handler_method
Added support to ignore method call
2 parents ba2f2eb + 67b4e50 commit 1cdb252

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
33
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
44
github.com/go-gl/glfw v0.0.0-20190217072633-93b30450e032 h1:WUDJN6o1AZlnNR0UZ11zsr0Quh44CV7svcg6VzEsySc=
55
github.com/go-gl/glfw v0.0.0-20190217072633-93b30450e032/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
6+
github.com/go-gl/glfw v0.0.0-20190519095719-e6da0acd62b1 h1:noz9OnjV5PMOZWNOI+y1cS5rnxuJfpY6leIgQEEdBQw=
7+
github.com/go-gl/glfw v0.0.0-20190519095719-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
68
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
79
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
810
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

platform.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ func (p *platformPlugin) InitPluginGLFW(window *glfw.Window) (err error) {
4242
p.channel.HandleFunc("Clipboard.getData", p.handleClipboardGetData)
4343
p.channel.HandleFunc("SystemChrome.setApplicationSwitcherDescription", p.handleWindowSetTitle)
4444
p.channel.HandleFunc("SystemNavigator.pop", p.handleSystemNavigatorPop)
45-
45+
// Ignored: Desktop's don't have system overlays
46+
p.channel.HandleFuncSync("SystemChrome.setSystemUIOverlayStyle", func(_ interface{}) (interface{}, error) { return nil, nil })
4647
return nil
4748
}
4849

textinput.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ func (p *textinputPlugin) InitPluginGLFW(window *glfw.Window) error {
5151
p.channel.HandleFuncSync("TextInput.setClient", p.handleSetClient)
5252
p.channel.HandleFuncSync("TextInput.clearClient", p.handleClearClient)
5353
p.channel.HandleFuncSync("TextInput.setEditingState", p.handleSetEditingState)
54-
54+
// Ignored: Desktop's don't have a virtual keyboard, so there is no need to show or hide it
55+
p.channel.HandleFuncSync("TextInput.show", func(_ interface{}) (interface{}, error) { return nil, nil })
5556
return nil
5657
}
5758

0 commit comments

Comments
 (0)