[Feature]: Add long-press popup behavior options for bottom-row functional keys
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Bereich
- accessibility, frontend, mobile
Rechercherichtung
Read the keyboard’s key and popup handling code, then trace how bottom-row functional keys open, select from, and dismiss popups in both Alphabet and Symbols layouts and URL fields. Check existing settings and tests for long-press behavior before estimating the implementation. Done means all four options work for the listed keys, regular letter popups keep their current behavior, and Back or tapping the original key closes a popup left open.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Feature Screening Checklist
- I have verified this is not a personal niche workflow and benefits a wide user base.
- This cannot be achieved using existing tools (custom layouts, text expander shortcuts, user dictionaries, or system settings).
- This will not introduce typing lag, delay loops, or degrade typing responsiveness on low-end devices.
- I have searched existing open and closed issues and discussions to confirm this has not been requested or rejected before.
Problem Statement
Currently, when a user long-presses a key that has a popup (such as the period, comma, slash key in URL fields, or the language/globe key), the popup behavior is limited to one mode: the user must slide to an option and release their finger to insert it. Once the item is selected, the popup closes immediately.
Some users prefer a two-step selection flow: long-press the key, lift the finger to keep the popup open, then tap the desired item. In Samsung Keyboard, this popup can remain open even after selecting an item, which is useful when the user wants to insert multiple items from the same popup. However, other users may want the popup to remain open only until they make one selection, then close automatically.
A hybrid behavior would also be useful: the popup remains open after lifting the finger, but it closes immediately after the user selects an item, whether the selection is made by sliding while the finger is still down or by tapping after lifting the finger.
At present, LeanType does not offer a setting to choose between these long-press popup behaviors for bottom-row functional keys.
Proposed Solution
Add a setting called “Long-press popup behavior” that controls the popup behavior for all bottom-row functional keys that have a long-press popup.
This includes the Enter/Action key, period key, space key, comma key, and language/globe key. It should also apply to the slash and period keys when they appear in URL input fields.
This setting should apply in both the Alphabet layout and the Symbols layout, and to the language/globe key wherever it is available.
This setting should not change the behavior of regular letter keys or their alternate-character popups. Letter keys should continue using the normal long-press behavior: slide to an alternate character and release to insert it, then close the popup.
Provide four options:
-
Close after selection (current default)
Long-press a key to open its popup. Slide to an item and release. The selected item is inserted or its action is performed, and the popup closes immediately. -
Keep open after selection (Samsung Keyboard-like)
Long-press a key, then lift the finger without selecting anything. The popup remains open. Tap an item to insert it or perform its action. After that, the popup remains open. -
Keep open before selection, close after selection
Long-press a key, then lift the finger without selecting anything. The popup remains open. Tap an item to insert it or perform its action. After that, the popup closes immediately. -
Hybrid: close after selection
Long-press a key to open its popup.
If the user slides to an item while keeping their finger on the screen and then releases, the selected item is inserted or its action is performed, and the popup closes immediately. This is the current default behavior.
If the user lifts their finger before selecting an item, the popup remains open. Then, when the user taps an item, the selected item is inserted or its action is performed, and the popup closes immediately.
For Options 2, 3, and 4, when the popup remains open after lifting the finger, tapping the same original key again should close the popup. Android Back and the back gesture should also close it.
Suggested setting label:
Long-press popup behavior
- Close after selection (default)
- Keep open after selection
- Keep open before selection, close after selection
- Hybrid: close after selection
Reference videos from Samsung Keyboard:
1
https://recordit.dev/record/b7b65a94-b8e8-46d0-bd68-6be1f3513753
2
https://recordit.dev/record/db2311ee-9a82-4cf8-9d30-ec60de5211e1
Target Audience & Benefits
Target audience:
Users who frequently type in Arabic and other languages that use diacritics, punctuation, symbols, multiple languages, or URL fields. It is especially useful for users who often insert several diacritics, symbols, domains, or language-related actions from the same long-press popup.
Benefits:
- Gives users control over long-press popup behavior instead of forcing one interaction model on everyone.
- Improves typing precision by letting users open the popup, lift their finger, and carefully tap the desired item.
- Reduces repeated long-presses when a user needs to insert multiple items from the same popup, particularly in Option 2.
- Preserves the current fast, familiar behavior as the default, so existing users are not affected unless they choose another option.
- Keeps the feature lightweight: it changes only the popup dismissal/selection flow for a small, clearly defined set of bottom-row functional keys, without adding background processes, typing latency, or complex maintenance.
- Offers a hybrid interaction model: users can lift their finger to keep the popup open for more precise tapping, while the popup still closes immediately after a selection, avoiding an unnecessarily persistent popup.
Alternatives & Workarounds Considered
No response
- Vorherrschende Sprache
- Kotlin
- Sterne
- 1k
- Forks
- 59
- Ø Merge
- 5 Std. 44 Min.
- Gemergte PRs (30 T.)
- 59
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus LeanBitLab/LeanType
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
LeanBitLab/LeanType#864 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 56/100
LeanBitLab/LeanType#861 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
LeanBitLab/LeanType#853 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: CJK Japanese input resets to Chinese after switching apps (physical keyboard)Evtl. vergeben @LeanBitLab hat das vor 2 Tagen übernommen. Offenbug
LeanBitLab/LeanType#842 · 18 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
NotesOffendocumentation
Schwierigkeit 3/5 1-3 Stunden Anfängerfreundlichkeit 15/100
LeanBitLab/LeanType#804 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in LeanBitLab/LeanType
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 61/100
PixelPlayerHQ/PixelPlayerOSS#249 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
streetcomplete/StreetComplete#7395 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
134130/intellij-mise#552 ·
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
wasi-master/wmkeyboard#1443 ·