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

New Keyboard UI implementation #445

Merged
merged 1 commit into from Aug 29, 2018
Merged

New Keyboard UI implementation #445

merged 1 commit into from Aug 29, 2018

Conversation

keianhzo
Copy link
Collaborator

Fixes #256, Fixes #84, Fixes #333 Added new Keyboard UI

The keyboard code really needs a refactoring, I'll address that in the next keyboard iteration.

Copy link
Contributor

@bluemarvin bluemarvin left a comment

Choose a reason for hiding this comment

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

Long pressing on a key causes the key to generate a keypress in addition to opening the expanded key menu.

@bluemarvin
Copy link
Contributor

Minor nit, but on daydream, the expanded h key menu is clipped on the right side.
clip

@keianhzo
Copy link
Collaborator Author

keianhzo commented Aug 29, 2018

Fixed the long press issue, also added a dim to the keyboard when the popup is on.

@keianhzo
Copy link
Collaborator Author

Fixed closing the pop up when clicking on the keyboard padding.

Copy link
Contributor

@bluemarvin bluemarvin left a comment

Choose a reason for hiding this comment

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

There seem to be a number of hard coded values that should probably be const values but that should be addressed in a follow up issue when code is refactored, possibly when we add non-roman alphabet keyboards?

StringBuilder popupCharacters = new StringBuilder(popupKey.popupCharacters);
switch (popupKey.codes[0]) {
case 110: {
Copy link
Contributor

Choose a reason for hiding this comment

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

part of the refactor should be replacing these numbers with const values so it is easier to read.

@bluemarvin bluemarvin merged commit 3f8869e into master Aug 29, 2018
@bluemarvin
Copy link
Contributor

@MortimerGoro Feel free to review the code at your leisure and file any issues as follow ups.

@bluemarvin bluemarvin deleted the keyboard_011 branch August 31, 2018 23:59
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

Successfully merging this pull request may close these issues.

None yet

3 participants