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

CommonKeys.kt: Show swipes on NUMERIC_KEY_ITEM also on ABC_KEY_ITEM #720

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

mpsijm
Copy link
Contributor

@mpsijm mpsijm commented Feb 12, 2024

I've extracted the swipes on the Symbol (#) Key to also show them on the Letters (ABC) Key. Great thanks to the fact that the common ABC_KEY_ITEM is in use for all keyboards now, since #696 and #719 😄

Copy link
Owner

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

Thx! This is some good cleanup.

README.md Outdated
@@ -69,9 +69,9 @@ This project is a follow-up to the now unmaintained (and closed-source) [Message
- **Swipe left** to cycle between selected layouts (languages).
- **Swipe to bottom-left** to toggle voice input. Requires [FUTO Voice Input](https://play.google.com/store/apps/details?id=org.futo.voiceinput).

### Symbol (`#`) Key
### Symbol/Letters (`#`/`ABC`) Key
Copy link
Owner

Choose a reason for hiding this comment

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

Seems a bit too verbose now, lets just make this :

### Symbols / Letters Key

README.md Outdated

- **Tap** to access numbers & symbols
- **Tap** to access numbers & symbols - **Tap again** to return to letters
Copy link
Owner

Choose a reason for hiding this comment

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

Make this two sentences instead of the -

so symbols. Tap again ...

@@ -32,6 +32,46 @@ import com.dessalines.thumbkey.utils.SlideType
import com.dessalines.thumbkey.utils.SwipeDirection
import com.dessalines.thumbkey.utils.SwipeNWay

val abcOrNumericSwipes =
Copy link
Owner

Choose a reason for hiding this comment

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

Name this uppercase like the other (pseudo) constants, so val ABC_OR_NUMERIC_SWIPES

Copy link
Contributor Author

@mpsijm mpsijm Feb 13, 2024

Choose a reason for hiding this comment

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

Fixed! I had initially picked the camelCase name because my intention was that this constant would only be used locally (inside CommonKeys.kt), and not in other files. I guess it was a habit from Go to turn it into a constant starting with a lower-case letter, in that case 😛 Kotlin has no way to make a val file-private, right? So I guess that vals are always package-private?

EDIT: should've just googled, of course private val is a thing 😄 Then it's up to you to decide whether this val should be file-private, or that it's fine to let it be package-private 🙂

Copy link
Owner

Choose a reason for hiding this comment

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

Its no probs. Ideally we could use const val UPPERCASE_CONST but that isn't possible for anything but primitive types iirc.

@dessalines dessalines merged commit 725647c into dessalines:main Feb 13, 2024
1 check passed
@mpsijm mpsijm deleted the swipes-on-abc-key branch February 13, 2024 22:54
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

2 participants