Skip to content

add callback for text show/hide #282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 17, 2019
Merged

add callback for text show/hide #282

merged 1 commit into from
Oct 17, 2019

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