Commit Graph

39 Commits

Author SHA1 Message Date
Jules Aguillon
1a18ea56ca Fix NullPointerException when ready options from subtypes
Seems like subtypes might not match what is declared. Must protect
against that.
2021-05-09 01:07:43 +02:00
Jules Aguillon
68945ff227 Restore support for Android < 12, set minimal version to 4
API level 12 is required for "subtype" code introduced in 1.7.
This adds a fallback for older version, "subtype" features are not
available but the keyboard is usable.

Changet he minimal version to 4 to be able to query the API level.

Using integer constant for versions because that's how it's presented in
the documentation. Build.VERSION_CODES is WTF.
2021-05-09 00:56:59 +02:00
Jules Aguillon
7a3312fd01 Add the accents preference
This replaces the "disable accent keys" checkbox.
The default should work for anyone: Accents will be hidden unless the
user has the french language installed.

The value "show every accents" is useful for versions of android that
don't have subtypes.
2021-05-09 00:09:10 +02:00
Jules Aguillon
1e6e3ab22a Fix layout not updating after rotation
Reset the layout on onStartInputView.
2021-05-07 22:10:26 +02:00
Jules Aguillon
f287ff2e09 Reset keyboard when finishing
This may cause key repeat continuing for a bit after the keyboard
closes.
2021-05-01 22:47:22 +02:00
Jules Aguillon
d00576ac2d Add the "layout" option again
Some versions of android don't allow to configure several languages.
2021-04-29 01:06:51 +02:00
Jules Aguillon
2dbb3dc28f Allow different sizes
Improve Paint code.
2021-04-24 23:18:16 +02:00
Jules Aguillon
2f8eae628f Fix crash when no current input binding
Broken recently. Restore previous code
2021-04-18 23:31:59 +02:00
Jules Aguillon
81803c406a Separate handling of modifiers from KeyValue class
KeyValue defines an ADT and some of its values, it now contains public
final fields and no internal logic.
KeyModifier handles modifiers and accents and creates new instances of
KeyValue when needed.
This operation is now properly cached.
2021-04-18 23:28:49 +02:00
Jules Aguillon
f8bce500ff Hide the input switching key if it's not needed
Android has a new way of switching between input methods and this key
need to be hidden in most cases.
2021-04-18 00:55:31 +02:00
Jules Aguillon
ca07bff133 Use subtypes to choose layout
This removes the "layout" setting. Every layouts that the user could use
will appear in the global settings.
2021-04-15 23:56:34 +02:00
Jules Aguillon
c22ca7302c Stateless KeyboardData class
It was a pain to use. It was also a pain to write this though.
2021-04-15 23:23:31 +02:00
Jules Aguillon
0b1befcc88 Fix layout pref under debug builds
Remove the use of [getIdentifier] because it requires the current
package name to be passed, which can't be found reliably since the
change in build system.
2021-04-13 01:58:25 +02:00
juloo
0b94395233 switchToNextInputMethod key 2016-12-11 22:45:58 +01:00
jaguillo
162f17a7a0 Move configs to Config object 2015-10-29 12:49:40 +01:00
jaguillo
e95ccbec00 Last used emoji 2015-10-26 14:19:46 +01:00
jaguillo
8bd0214e26 Emoji pane 2015-10-24 16:32:49 +02:00
jaguillo
db20d52884 Start with emojis 2015-10-23 14:22:43 +02:00
jaguillo
7fb89b0c95 Stop special handling of delete keys 2015-10-17 00:54:28 +02:00
jaguillo
03cc0a5429 Key to switch to numeric pane 2015-10-11 15:30:39 +02:00
jaguillo
549c753450 Perf improvement (small) 2015-10-03 00:19:17 +02:00
jaguillo
700adbded6 Mini fix 2015-10-01 17:11:52 +02:00
juloo
d81509d7ec Accent 2015-08-18 01:25:47 +02:00
juloo
6f09c971c0 SideBarPreference + Continuing settings 2015-08-08 22:33:06 +02:00
juloo
fe432fd3ba Conf key open SettingsActivity 2015-08-08 17:58:03 +02:00
juloo
153c384990 Start SettingsActivity 2015-08-08 16:47:22 +02:00
juloo
c29a2a9c9c Todo settings 2015-08-08 15:26:23 +02:00
juloo
f22452488d Move logcat 2015-08-07 01:49:37 +02:00
juloo
bee4334626 logcat.py 2015-08-04 21:07:28 +02:00
juloo
1be1ec7a4b Add qwerty layout + popup to change layout 2015-08-03 20:01:05 +02:00
juloo
b32f2ce3f3 Fix del key and keyEvent keys 2015-08-03 15:58:13 +02:00
juloo
e9df9bc299 Repeat key on long press 2015-08-03 15:11:11 +02:00
juloo
85eb9daa46 Send Ctrl/Alt(/Shift) to the application 2015-08-02 21:32:11 +02:00
juloo
1115a34a19 Fix mini crash + Can disable on keys 2015-08-02 19:56:23 +02:00
juloo
5bbdbcd522 Implement shift key 2015-08-01 23:54:38 +02:00
juloo
349f0bee6f Send keys to the application 2015-08-01 21:36:40 +02:00
juloo
0942556bad Improve KeyValue 2015-08-01 16:33:30 +02:00
juloo
45ea215bb6 Create KeyboardData class and handle move on keys 2015-07-31 20:48:19 +02:00
juloo
90167a986b Initial commit 2015-07-30 20:14:55 +02:00