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

Android modifier chirality #341

Merged
merged 19 commits into from
Oct 4, 2017
Merged

Android modifier chirality #341

merged 19 commits into from
Oct 4, 2017

Conversation

darcywong00
Copy link
Contributor

This is follow-on to #300 for adding chirality modifiers to KMEA for external hardware keyboards.

Refer to #308 for initial PR during development.

Added:

  • set keyboard chirality on keyboard loaded/changed events from KMW
  • Enhanced KMSample2 project to handle external keyboards
  • Created android/Tests/KeyboardHarness (based on KMSample1) as a framework for developers to easily test keyboards. Currently it loads "chirality" test keyboard.

darcywong00 and others added 19 commits October 4, 2017 10:33
This is follow-on to #300 for adding chirality modifiers to KMEA.

Add support for L/R Ctrl, Alt, caps lock, num lock, and scroll lock for external keyboard

- temporarily adding test chriality.js keyboard
-Update KMEA to copy keyman-engine.aar to Tests/ for future test apps to consume.
Refactor KMManager.getActiveKeyboard()
Move modifierCodes to separate class
Clean up .gitignore
Per review comments
* Rename chirality to keyboardHarness
* Change namespace to com.keyman.android.tests.keyboardHarness
* Add readme.md for info
* Document shift states and lock states in kmembedded.js, and standardize `lstates` parameter name
* Leave getActiveKeyboard() refactor as a TODO
Addresses PR comment of not using a timeout that assumes keyboard is ready in preference of KMW event (keyboard loaded or changed)

This is still wip
- Update In-app keyboard `isChiral` property when the OSK is shown
- Update System keyboard `isChiral` property on the event onKeyboardChanged()

This implementation comes out of the complication when in-app or system keyboard is changed, KMManager.setKeyboard is changing both keyboards
Updates to new onKeyboardChanged signature

Also incorporated external keyboard support to KMSample2
Attempt to move to JS handler in KMManager
Cleanup code after moving chirality test to KMW event handler
Revert to original onKeyboardChanged() signature
Fix onKeyboardChanged signature
Remove chirality test keyboard from main kmapro app
Fix KMSample2 compilation
Copy link
Contributor

@jahorton jahorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@darcywong00 darcywong00 merged commit 52b94d6 into master Oct 4, 2017
@darcywong00 darcywong00 deleted the android-modifier-chirality branch October 6, 2017 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants