Skip to content

Conversation

@pchampio
Copy link
Member

Those callback are useful when wanting to display the OS virtual keyboard.

fixes #274

Linux example:

package main

// the file virtual_keyboard_linux.go is used to show the 'onboard'
// vitrual keyboard upon text input.

import (
	"os/exec"
	flutter "github.com/go-flutter-desktop/go-flutter"
)

var onBoard = exec.Command("onboard")

func init() {
	options = append(options,
		flutter.VirtualKeyboardShow(func(){
			err := onBoard.Start()
			if err != nil {
				return
			}
		}),
	)
}

Those callback are useful when wanting to display the OS virtual
keyboard.
@pchampio pchampio requested a review from GeertJohan October 16, 2019 16:19
@pchampio pchampio merged commit 72a54d7 into master Oct 17, 2019
@pchampio pchampio deleted the feature/VirtualKeyboard branch October 17, 2019 17:23
@pchampio
Copy link
Member Author

I plan to tag this into the next minor (or major) release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Open Virtual Keyboard / On-Screen Keyboard (OSK)

2 participants