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

type_into_keyboard fails when keyboard is set to uppercase but the typed text starts with lowercase #202

Closed
ondrejhanslik opened this issue May 1, 2013 · 4 comments

Comments

@ondrejhanslik
Copy link
Contributor

This is a minor issue with an easy workaround but it's still a bug.

When using type_into_keyboard with a lowercase text, e.g. test in a text field which capitalizes the first character, nothing is typed. The bug is caused by the fact that the keyboard is initially in uppercase mode and the lowercase letters are not searched.

The obvious workaround is to change the typed string to Test.

@CMTaylor
Copy link

CMTaylor commented May 3, 2013

Some text fields expect a capitalized first letter, but allow a lower case first letter. In such a situation, type_into_keyboard should have some way to press the SHIFT key, as a user would, to turn of the uppercase mode and allow lowercase text entry.

@ondrejhanslik
Copy link
Contributor Author

Just noticed there is already a test for this issue - data_entry.feature in the "Controls" example app.

@moredip
Copy link
Owner

moredip commented May 3, 2013

Yeah, this is a known problem. It was discussed on the mailing list but looks like it never had a GH issue filed.

I have a pending pull request that solves this in the upstream KIFTypist class: kif-framework/KIF#207

I wouldn't be much work to apply the fix directly to PublicAutomation's copy of KIFTypist, I just haven't had a chance to do it myself yet.

@moredip
Copy link
Owner

moredip commented May 10, 2013

This should be resolved as of 1.1.12. I pulled in the KIFTypist changes in 51bcffd

@moredip moredip closed this as completed May 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants