Skip to content
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

Invalid behavior of 'ExecuteMobileScript' method with parameters OnScreenKeyboard.Enable/Disable #127

Open
dnovikau opened this issue Dec 22, 2015 · 5 comments

Comments

@dnovikau
Copy link

Running mentioned method with parameters either 'OnScreenKeyboard.Enable' or 'OnScreenKeyboard.Disable' like in example https://github.com/2gis/Winium.StoreApps/wiki/Command-Execute-Script does not works as expected:

  1. by executing the method with parameter 'OnScreenKeyboard.Disable' I expect the keyboard on emulator to disappear, but the action does not happen
  2. on the other hand running the script with 'OnScreenKeyboard.Enable' does not enables keyboard

if to update mention method with adding new predefined parameter will resolve issue with hidding the keyboard:
image

@NickAb
Copy link
Contributor

NickAb commented Dec 23, 2015

@dnovikau it seems that keyboard toggling using hot key is disabled in Mobile 10 emulators.
back command can only be used to hide keyboard, not show it. Also, I believe that applications can override reaction on back event, so it might be confusing if we replace OnScreenKeyboard.Disable with back.
I think it would be better to explicitly call back action when wanting to hide keyboard on Mobile 10 emulators. If OnScreenKeyboard.* is called on Mobile 10, then exception should be raised with clarifying message.
Also, it would be nice to find out if there is any replacement for Page Up and Page Down shortcuts for Mobile 10.

@dnovikau
Copy link
Author

dnovikau commented Jan 6, 2016

The following article contains info about keys applicable in win10 emulator

@NickAb
Copy link
Contributor

NickAb commented Jan 6, 2016

@dnovikau there is no link

@NickAb
Copy link
Contributor

NickAb commented Jan 6, 2016

I found this on msdn

One important user interface change has been made. In this version of the emulator, the keyboard shortcut to show or hide the hardware keyboard is now F4, acting as a toggle, rather than the Page Up/Page Down pair of keys used in earlier emulators.

Here is one more msdn link to a table with shortcuts.

So, we need to use F4 to toggle keyboard now, which is a problem, because I am not sure if we will be able to tell the result of the command. Page Up and Page Down allowed to explicitly hide or show keyboard, while toggling depends on previous state.
I think calling back to hide keyboard is more explicit, as it can only hide keyboard, not make it appear.
Anyway, we can add keyboard toggle command at the moment. Explicit hiding/showing keyboard will need more research.

@dnovikau
Copy link
Author

dnovikau commented Jan 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants