Skip to content

feat: add a speed option for spacebar cursor control - #516

Closed
SebastianK1999 wants to merge 1 commit into
FossifyOrg:mainfrom
SebastianK1999:feat/spacebar-cursor-speed
Closed

SebastianK1999 wants to merge 1 commit into
FossifyOrg:mainfrom
SebastianK1999:feat/spacebar-cursor-speed

Conversation

@SebastianK1999

Copy link
Copy Markdown

Hi I'm just user of Your app.

I would like to say i love it. I love how simple and easy to use it is. But i had just one small problem, so i woukd love to share it with you, and hopefully give something from me to improve experience to everyone.

There is a feature, where you can swipe on spacebar to move carret. i feel like all keboards have it wrong, so i decided to fix it. The problem with is that it gives no feedbak to the user when he scrolls and the movement is WAY TOO FAST. it is imposible to land exactly where you want. I thnik, it should be used for precise carret movements. So i gave an option to slow it down and hapric "clicks" when carret moves. i was testing it for a while now on my phone. And i can confirm It really works well and it is nice and easy to navigate.

I am aware you wont be taking my solutions blindly. And that is perfectly ok. It needs testing on your side. and review or maybe even rewrite. My goal here is to give you an idea on what might be worth adding.

Im not doing to lie. i used AI to add this feature. Im not an android developer (but i am a developer). Also, the solution is missing Translations. And Tests [if there are any]. And possibly something else. But to my eye it looks reasonable as a feature and code change. Hope my suggestion turns out useful.

Spacebar cursor control is now driven by finger movement instead of the long press: the press origin comes from the ACTION_DOWN x, the platform touch slop decides that the finger is swiping (cancelling the pending language dialog), and the configured step decides how much travel one character needs. Previously the first movement event only seeded the origin and any later event more than a fixed 8dp away moved the cursor.

Adds one setting under Typing and input, "Cursor movement speed": Slow (24dp), Normal (16dp, default) and Fast (8dp), where Fast reproduces the previous behaviour.

Cursor movement now buzzes with KEYBOARD_TAP like the rest of the keyboard, instead of TEXT_HANDLE_MOVE, which produces no vibration on some devices.

Refs FossifyOrg#377
@fossifybot

fossifybot Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Fossify accepts code contributions only for open issues labeled help wanted. This pull request does not meet that requirement or one of the documented exceptions, so it is being closed without review. Please read the contribution guidelines before starting work.

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.

1 participant