abouttreesummaryrefslogcommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-02-17Fix KeyValue flags layoutJules Aguillon1-17/+22
The kind field wasn't large enough to hold the new Compose_pending kind. The flags field is reduced in size by removing a free spot. The FLAGS_BITS mask is defined in a safer way.
2024-02-17compose: Add glyphJules Aguillon3-1/+9
2024-02-17compose: Don't remove keys not in sequenceJules Aguillon1-7/+14
Keys that are not part of any possible sequences are now dimmed and still usable instead of being removed, which felt weird.
2024-02-17compose: Add X11 compose sequencesJules Aguillon8-32/+5532
compile.py implements a parser for X11's Compose.pre files. A lot of code is necessary to interpret character names but thanksfully, the name of most characters is contained in the file. The state machine is compiled into two char arrays which unfortunately requires an expensive initialisation and allocation.
2024-02-17Compose keyJules Aguillon11-11/+244
The COMPOSE_PENDING modifier indicate whether a compose sequence is in progress. The new key of kind Compose_pending sets the current state of the sequence. The compose sequences are compiled into a state machine by a python script into a compact encoding. The state of the pending compose is determined by the index of a state.
2024-02-16Add QWERTY GB layout (#557)Ryan Gibb4-2/+44
Adapted from latn_qwerty_us * Make it the default layout for en-GB
2024-02-14Improve latn_qwerty_tly.xml (#549)vedamanavi1-3/+2
Removing "g" as it was used two times as a main key. shift="0.5" added
2024-02-14Don't invert the pin entry layoutJules Aguillon3-3/+30
The pin entry layout shouldn't be inverted as the letter indications would be meaningless and the order would be opposite to what the option specifies. The enter and action key are swapped as the automatic swapping is also removed.
2024-02-11Update README.md (#553)BogdanLata1-0/+2
I made more clearer how to use the keys
2024-02-10Fix various linter warningsJules Aguillon29-69/+40
Among others: - Use `apply` instead of `commit` when saving shared preferences. - Avoid inlined Api - Remove unused resources
2024-02-10Fix compatibility with Android 3.0Jules Aguillon5-3/+11
Incompatible APIs were used in the custom layouts and the extra keys options. Add @TargetApi annotations to help catch similar issues in the future with the help of 'gradle lint'.
2024-02-10Drop support for Android versions below 3.0Jules Aguillon4-16/+6
Android 3.0 (API level 11) was released in Feb 2011. These versions were already unsupported due to unavoidable calls to: - MotionEvent.getActionMasked() (API 8) And avoidable calls to: - SharedPreferences.Editor.putStringSet() (API 11)
2024-02-10Custom border settings (#524)RetrogisusDEV20-4/+71
2024-02-10Update Turkish translations (#550)Mehmet Ali1-3/+3
2024-02-10contributing: Fix typo (#551)ErrrorMaxx1-1/+1
2024-02-07CI: Update to node.js-20 (#546)Rapha3-7/+8
2024-02-06Add more Russian vowels combined with acute accentJules Aguillon1-0/+1
2024-02-06Move store descriptions into strings filesJules Aguillon100-15/+197
This makes translation easier as there's a single file to edit at. Existing short and full descriptions are conserved. sync_translations.py takes care of updating the metadata files. The metadata directories are renamed to match the language codes used in `res/`. Contributing guidelines are updated accordingly.
2024-02-06Update method.xml to support arab_hamvaj_tly (#547)vedamanavi1-0/+1
2024-02-04Release 1.26.0 (38)Jules Aguillon2-2/+9
2024-02-04Create layout arabic-hamvaj-tly (#542)vedamanavi3-0/+49
2024-02-04Workaround cursor slider bug in AcodeJules Aguillon1-3/+15
Moving the cursor with setSelection has no effect on Acode, for which the fallback must be used.
2024-01-31Add language support for Talysh New Latin (#534)vedamanavi1-0/+1
2024-01-28Add layout QWERTY (Talysh New Latin) (#529)vedamanavi3-0/+51
2024-01-28Redefined the key margin options in percentJules Aguillon3-15/+16
Define the key margin options relative to the baseline dimensions of keys. This removes the doubling of the horizontal margin in landscape mode.
2024-01-26Send down event for modifiers on timeJules Aguillon4-42/+151
This allows to use modifiers in combination with other inputs like a mouse click, for example under termux-x11. The key down event and notification about modifiers changing are sent down to KeyEventHandler. A mutable state remember for which modifier down events have been sent. When pressing down a modifier with one finger and typing with the other, it might appear that the modifier is released after the first time an other key is pressed and then pressed and released for the following keys. This prevents unintentionally type two modified keys instead of one when the second key is pressed while the other is not yet released.
2024-01-22check_layout: Warn against whitespaces and "loc"Jules Aguillon2-2/+6
2024-01-21Add Russian vowels combined with the acute accentJules Aguillon1-0/+2
2024-01-21Move layout definitions into srcs/layoutsJules Aguillon49-27/+26
This separates the layout definitions from the special layouts (bottom_row, greekmath) and other unrelated files (method, settings). This is also a more intuitive location for layouts and make the resource directory easier to navigate. Under the hood, layouts are copied back into build/generated-resources/xml.
2024-01-21Update pt-br translation (#527)marciozomb131-10/+10
Update translation pt-br
2024-01-20Light and dark themes for the launcher and settingsRetrogisusDEV6-15/+12
2024-01-18Add <queries> element for detecting IMEs (#526)abb1281-0/+7
To detect voice IMEs, Unexpected Keyboard calls InputMethodManager.getEnabledInputMethodList Internally, this method eventually calls a method that returns a filtered list of packages that may not include the installed voice IME, and thus Unexpected Keyboard unexpectedly claims no voice input is installed because it can't see it. The fix is to explicitly state in the manifest that we want to query for other IMEs, based on https://developer.android.com/training/package-visibility/declaring This is not an issue with Google's voice input or other preinstalled voice inputs because they usually have android:forceQueryable=true, but this is an issue with third-party voice inputs such as FUTO Voice Input. Launching the voice input app after activating the keyboard also usually makes the package visible, so a consistent way to replicate this issue on modern Android is to reboot the device and try triggering voice input from the keyboard
2024-01-18Add Ukrainian translation (#525)Sergiy Stupar1-0/+104
2024-01-15Allow hidding the keyboard switching keyJules Aguillon20-3/+22
The keyboard switching key is now selected by default in the Extra Keys option and can be deselected.
2024-01-15Always show the keyboard switching keyJules Aguillon2-10/+0
Android's shouldOfferSwitchingToNextInputMethod() method might return false when an other IME is installed, perhaps when the other IME doesn't specify android:supportsSwitchingToNextInputMethod="true".
2024-01-15Use switchToNextInputMethod instead of switchToPreviousInputMethodJules Aguillon1-1/+1
This is warranted by the API.
2024-01-15Refactor: Clearer names for CHANGE_METHOD* eventsJules Aguillon4-8/+8
The keys are not renamed to retain compatibility.
2024-01-13Refactor: Keyboard2View: Take layout id attrJules Aguillon3-16/+7
Removes EmojiBottomRow.
2024-01-13Refactor: New namespace for preference classesJules Aguillon16-38/+46
2024-01-10prefs: Show custom layout names if providedJules Aguillon3-9/+32
Show the name of custom layouts in the list if it's provided using the `name` attribute. This should make managing several custom layouts easier.
2024-01-10check_layout: Stronger bottom row key checkJules Aguillon2-13/+23
2024-01-10CI: Fix debug build due to missing release keystoreJules Aguillon1-4/+6
2024-01-10Fix layouts containing empty keysJules Aguillon5-8/+8
This results in a key being the empty string and do not trigger an error: key1="\" Layouts are fixed and check_layout now checks for this case.
2024-01-10Fix crash on shift with empty keysJules Aguillon1-0/+2
Tapping shift might call `Utils.capitalize_string` on some symbols (notably custom keys), which crashes on empty string. This also happens on builtin layouts with `key1="\"`.
2024-01-09Revert "Remove the vibration settings"Jules Aguillon21-175/+52
This reverts commits ef03dfed5c802a855c4655204eee39a8769cfed7 and ff01678ba688778d67f824a0be56634974c1b0e8. The "vibration duration" slider is bought back. The "vibration enabled" option is replaced by "custom vibration", which switch between the system haptic feedback or the custom vibration. The slider is greyed when "custom vibration" is unchecked and is allowed to have a value of 0 to disable vibrations within the app. The intermediate values "light", "medium" and "strong" are removed and no migration of the setting is made.
2024-01-08gradle: Enforce release build is signedJules Aguillon1-11/+7
2024-01-08gradle: Name outputs after the application IDJules Aguillon1-0/+7
2024-01-07Update Spanish translations (#517)Diego Puma1-5/+5
2024-01-03Release 1.25.0 (37)Jules Aguillon4-3/+12
2024-01-03launcher: Remove intro video when not supportedJules Aguillon1-2/+13
Previously, this would trigger an error popup and make the activity unresponsive.