Commit Graph

745 Commits

Author SHA1 Message Date
9257bf7392 Add Ukrainian translation (#525) 2024-01-18 22:44:22 +01:00
95bd9312a7 Allow hidding the keyboard switching key
The keyboard switching key is now selected by default in the Extra Keys
option and can be deselected.
2024-01-15 23:26:40 +01:00
0a86f9ab01 Always show the keyboard switching key
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-15 23:15:16 +01:00
70d777253c Use switchToNextInputMethod instead of switchToPreviousInputMethod
This is warranted by the API.
2024-01-15 22:10:11 +01:00
d7fa5ffa9a Refactor: Clearer names for CHANGE_METHOD* events
The keys are not renamed to retain compatibility.
2024-01-15 22:09:15 +01:00
b114c78bf1 Refactor: Keyboard2View: Take layout id attr
Removes EmojiBottomRow.
2024-01-13 23:22:26 +01:00
eddf9c6c11 Refactor: New namespace for preference classes 2024-01-13 20:59:05 +01:00
148f3dfc05 prefs: Show custom layout names if provided
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-10 23:39:19 +01:00
6725d3057b check_layout: Stronger bottom row key check 2024-01-10 23:00:40 +01:00
cf9fd3a0db CI: Fix debug build due to missing release keystore 2024-01-10 00:34:19 +01:00
329a35e7d3 Fix layouts containing empty keys
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-10 00:28:21 +01:00
b319356a08 Fix crash on shift with empty keys
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-10 00:17:09 +01:00
73267d68fb Revert "Remove the vibration settings"
This reverts commits ef03dfed5c and
ff01678ba6.

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-09 00:43:28 +01:00
3f2f3177da gradle: Enforce release build is signed 2024-01-08 22:49:59 +01:00
e26e1d112c gradle: Name outputs after the application ID 2024-01-08 22:47:21 +01:00
0005eb2dd5 Update Spanish translations (#517) 2024-01-07 02:18:40 +01:00
8b2c7d9337 Release 1.25.0 (37) 1.25.0 2024-01-03 01:07:22 +01:00
409362ddb4 launcher: Remove intro video when not supported
Previously, this would trigger an error popup and make the activity
unresponsive.
2024-01-03 00:48:26 +01:00
c524caa6f1 Remove unsupported API readAllBytes 2024-01-01 21:04:54 +01:00
7caf60c93b README: Display the intro video 2023-12-31 20:19:58 +01:00
49a6a30773 Add an introduction video in the launcher activity
A video is more intuitive than a written description and doesn't need
translations.
2023-12-31 13:18:15 +01:00
4a5a125aea Bring the voice IME chooser with a long press 2023-12-30 01:24:21 +01:00
51a41ec90a Voice IME chooser popup
Bring a popup for choosing the voice IME when the voice key is pressed
for the first time or the list of voice IMEs installed on the device
change.

A preference stores the last selected IME and the last seen list of
IMEs.
2023-12-30 00:56:55 +01:00
7e7a5e4425 Separate arabic layouts with hindu or arabic numerals
This reverts the Tusinian layout (1af4e45) and instead introduce a new
arabic PC layout with arabic numbers.

Layouts are renamed:
- arab_pc => arab_pc_hindu
- arab_pc_tn => arab_pc
2023-12-26 17:16:29 +01:00
9ff8179d49 Add layout attribute 'numpad_script'
This new attribute is now used instead of 'script' for modifying the
numpad according to the selected layout's script.
If not provided, it defaults to the value of 'script'.
2023-12-26 17:05:51 +01:00
1af4e45117 Add Tunisian layout
It is a copy of the 'arab_pc' layout with arabic digits.
Also, fix the default layout for arabic.
2023-12-21 21:45:56 +01:00
2db4ae3730 Fix the number row showing up on top of pinentry
This wasn't intended and was caused by the "current_layout_unmodified"
optimisation.
2023-12-21 20:59:30 +01:00
2aecbca9ac Update strings.xml (#505) 2023-12-20 21:27:19 +01:00
dce7e2b9d9 Update strings.xml (cz_CS) (#506) 2023-12-20 21:26:46 +01:00
1
7c12aa610c Update Turkish translations (#501)
Turkish translate update
2023-12-18 19:38:06 +01:00
294ebee6f1 Update Polish translations (#502) 2023-12-18 19:35:56 +01:00
bd1afd2c3c Update Latvian translations (#503) 2023-12-18 19:34:15 +01:00
44f6908411 Update French translation 2023-12-17 20:25:43 +01:00
df04eae85f Launcher activity: Add "Select keyboard" button 2023-12-17 20:10:39 +01:00
d7c230e173 prefs: Use QWERTY (US) as the default custom layout
This layout definition contains some documentation and is a better
default than no text.
2023-12-17 12:41:19 +01:00
478d8082f4 Improve layout parsing errors
Add location information to all error and improve "expected tag" errors.
2023-12-17 12:12:23 +01:00
7af6adcf11 prefs: Report errors while editing custom layouts
Errors are obtained by running the parser, validation is throttle to
when the user stops editing for a second.
2023-12-17 11:58:41 +01:00
dd327cc812 prefs: Render line numbers in custom layout input box
Line numbers will help reporting errors. Also, disable line breaking to
improve readability.
2023-12-10 19:44:50 +01:00
d073523125 shell.nix: Update dependencies and add Gradle
Update OpenJDK to version 17, Android build tools to 33.0.1 and platform to 33.
These are required to build with Gradle.

Add Gradle to the environment, which must be wrapped to fix a
permissions issue. Setting `GRADLE_OPTS` has no effect as it seems not
to be passed down to the daemon.
2023-11-25 20:13:24 +01:00
684d5c7b70 Use Gradle (#452) 2023-11-25 20:11:12 +01:00
851d22da6e Make check_layout.py independent from dir structure 2023-11-25 19:08:24 +01:00
44adb55544 Separately persisted current layout in landscape mode
Remember the selected layout in portrait and landscape mode
independently.
This allows to define a layout specific to landscape without having to
switch manually.
2023-11-19 20:10:45 +01:00
15de829138 Persist current selected layout 2023-11-19 19:07:54 +01:00
c57d896d8d Update translations
Was missing from the previous commit.
2023-11-19 12:03:39 +01:00
80c6f97767 Add Desert and Jungle themes 2023-11-19 11:33:39 +01:00
b0cf9a52b5 Update Spanish translations (#489) 2023-11-13 00:06:43 +01:00
f696452c59 method.xml: Add Armenian 2023-11-13 00:04:31 +01:00
70500ba6f8 Update check_layout.output 2023-11-13 00:03:45 +01:00
474c693427 Add Armenian layout (#490) 2023-11-13 00:00:25 +01:00
73060bfc00 Adaptive launcher icon
Existing icons are kept for API < 26.
2023-11-06 20:52:35 +01:00