Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add TextInput stub implementations
  • Loading branch information
provokateurin committed May 19, 2020
commit 02fd06ba1e9db2e21d1b1407004729164072bc1e
3 changes: 3 additions & 0 deletions textinput.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ func (p *textinputPlugin) InitPlugin(messenger plugin.BinaryMessenger) error {
func (p *textinputPlugin) InitPluginGLFW(window *glfw.Window) error {
p.window = window
p.channel = plugin.NewMethodChannel(p.messenger, textinputChannelName, plugin.JSONMethodCodec{})
p.channel.HandleFunc("TextInput.setEditableSizeAndTransform", func(arguments interface{}) (reply interface{}, err error) { return nil, nil })
p.channel.HandleFunc("TextInput.requestAutofill", func(arguments interface{}) (reply interface{}, err error) { return nil, nil })
p.channel.HandleFunc("TextInput.setStyle", func(arguments interface{}) (reply interface{}, err error) { return nil, nil })
p.channel.HandleFuncSync("TextInput.setClient", p.handleSetClient)
p.channel.HandleFuncSync("TextInput.clearClient", p.handleClearClient)
p.channel.HandleFuncSync("TextInput.setEditingState", p.handleSetEditingState)
Expand Down