mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-20 06:09:09 +00:00
don't allow disabling popop keys in non-alphabet layouts
and slightly adjust readme
This commit is contained in:
parent
eb7333b1da
commit
9cce029e06
2 changed files with 9 additions and 5 deletions
|
@ -40,14 +40,14 @@ Features that may go unnoticed, and further potentially useful information
|
|||
* Emoji View and Language Switch will disappear if you have the corresponding key enabled;
|
||||
* For some layouts it\'s not the Comma-key, but the key at the same position (e.g. it\'s `q` for Dvorak layout).
|
||||
* When incognito mode is enabled, no words will be learned, and no emojis will be added to recents.
|
||||
* Sliding key input: Swipe from shift to another key to type a single uppercase key:
|
||||
* Sliding key input: Swipe from shift to another key to type a single uppercase key
|
||||
* This also works for the `?123` key to type a single symbol from the symbols keyboard, and for related keys.
|
||||
* Long-press the `?123` from main view to directly open numpad.
|
||||
* Long-press a suggestion in the suggestion strip to show more suggestions, and a delete button to remove this suggestion.
|
||||
* Swipe up from a suggestion to open more suggestions, and release on the suggestion to select it.
|
||||
* Long-press an entry in the clipboard history to pin it (keep it in clipboard until you unpin).
|
||||
* Long-press the `?123` from main view to directly open numpad.
|
||||
* Swipe left in clipboard view to remove an entry (except when it's pinned)
|
||||
* You can add dictionaries by opening them in a file explorer:
|
||||
* You can add dictionaries by opening the file
|
||||
* This only works with _content-uris_ and not with _file-uris_, meaning that it may not work with some file explorers.
|
||||
* _When using debug mode / debug APK_
|
||||
* Long-press a suggestion in the suggestion strip twice to show the source dictionary.
|
||||
|
@ -66,7 +66,8 @@ Whether you encountered a bug, or want to see a new feature in OpenBoard, you ca
|
|||
Before opening a new issue, be sure to check the following:
|
||||
- **Does the issue already exist?** Make sure a similar issue has not been reported by browsing [existing issues](https://github.com/Helium314/openboard/issues). Please search open and closed issues.
|
||||
- **Is the issue still relevant?** Make sure your issue is not already fixed in the latest version of OpenBoard.
|
||||
- **Did you use the issue template?** It is important to make life of our kind contributors easier by avoiding issues that miss key informations to their resolution.
|
||||
- **Did you use the issue template?** It is important to make life of our kind contributors easier by avoiding issues that miss key information to their resolution.
|
||||
Note that issues that that ignore part of the issue template will likely get treated with very low priority, as often they are needlessly hard to read or understand (e.g. huge screenshots, or addressing multiple topics).
|
||||
|
||||
## Translation
|
||||
Currently there is no simple way of translating the app, but it's coming soon...
|
||||
|
|
|
@ -31,11 +31,14 @@ private const val MORE_KEYS_LANGUAGE = "more_keys_language"
|
|||
const val MORE_KEYS_LABEL_DEFAULT = "$MORE_KEYS_NUMBER,true;$MORE_KEYS_LANGUAGE_PRIORITY,false;$MORE_KEYS_LAYOUT,true;$MORE_KEYS_SYMBOLS,true;$MORE_KEYS_LANGUAGE,false"
|
||||
const val MORE_KEYS_ORDER_DEFAULT = "$MORE_KEYS_LANGUAGE_PRIORITY,true;$MORE_KEYS_NUMBER,true;$MORE_KEYS_SYMBOLS,true;$MORE_KEYS_LAYOUT,true;$MORE_KEYS_LANGUAGE,true"
|
||||
|
||||
private val allMoreKeyTypes = listOf(MORE_KEYS_NUMBER, MORE_KEYS_LAYOUT, MORE_KEYS_SYMBOLS, MORE_KEYS_LANGUAGE, MORE_KEYS_LANGUAGE_PRIORITY)
|
||||
|
||||
fun createMoreKeysArray(popupSet: PopupSet<*>?, params: KeyboardParams, label: String): Array<String>? {
|
||||
// often moreKeys are empty, so we want to avoid unnecessarily creating sets
|
||||
val moreKeysDelegate = lazy { mutableSetOf<String>() }
|
||||
val moreKeys by moreKeysDelegate
|
||||
params.mMoreKeyTypes.forEach { type ->
|
||||
val types = if (params.mId.isAlphabetKeyboard) params.mMoreKeyTypes else allMoreKeyTypes
|
||||
types.forEach { type ->
|
||||
when (type) {
|
||||
MORE_KEYS_NUMBER -> params.mLocaleKeyTexts.getNumberLabel(popupSet?.numberIndex)?.let { moreKeys.add(it) }
|
||||
MORE_KEYS_LAYOUT -> popupSet?.getPopupKeyLabels(params)?.let { moreKeys.addAll(it) }
|
||||
|
|
Loading…
Add table
Reference in a new issue