abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2.java
AgeCommit message (Collapse)AuthorFilesLines
2022-01-09Add the Action keyJules Aguillon1-0/+43
It is placed on the top-right of the enter key on every layouts. It sends a special event (performEditorAction) instead of writing a newline. The "actionId" is passed through the EditorInfo object in an obfuscated way so it's not clear whether it's using the right one.
2022-01-09Allow to hide more keys than just accentsJules Aguillon1-14/+13
Add the "FLAGS_LANGS" set of flags, which will be used to hide individual keys that are not accents.
2021-12-30Add themesJules Aguillon1-18/+16
Add a "Theme" option to choose between a dark and light theme. The light theme uses the colors of the dark theme with the luminance inversed. The reloading after a configuration change is changed slightly: - Special handling is needed when the Theme is changed (recreate the views) - The default implementation of 'onConfigurationChanged' is used Which triggers more refresh (but don't recreate the views) - 'onCreateInputView' is no longer needed
2021-12-28Reference the "special key font" in the Theme objectJules Aguillon1-7/+0
Remove the last cast of the context.
2021-12-28Separate "handler" codeJules Aguillon1-56/+40
As with the previous commit, remove casts of the context. The "handler" object is referenced in the "config" object for now.
2021-12-28Turn Config into a singleton objectJules Aguillon1-8/+4
The goal is to remove a cast of the 'context' into 'Keyboard2'.
2021-12-19Auto-format Java and XML filesJules Aguillon1-115/+115
Use xmllint. Re-indent Java files using spaces.
2021-12-11Fix Android's builtin shortcut not workingJules Aguillon1-1/+1
The 'repeat' field of generated key events was incorrectly set to '1'.
2021-05-09Fix NullPointerException when ready options from subtypesJules Aguillon1-4/+8
Seems like subtypes might not match what is declared. Must protect against that.
2021-05-09Restore support for Android < 12, set minimal version to 4Jules Aguillon1-3/+24
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-09Add the accents preferenceJules Aguillon1-9/+48
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-07Fix layout not updating after rotationJules Aguillon1-0/+1
Reset the layout on onStartInputView.
2021-05-01Reset keyboard when finishingJules Aguillon1-0/+7
This may cause key repeat continuing for a bit after the keyboard closes.
2021-04-29Add the "layout" option againJules Aguillon1-24/+20
Some versions of android don't allow to configure several languages.
2021-04-24Allow different sizesJules Aguillon1-1/+1
Improve Paint code.
2021-04-18Fix crash when no current input bindingJules Aguillon1-3/+8
Broken recently. Restore previous code
2021-04-18Separate handling of modifiers from KeyValue classJules Aguillon1-15/+13
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-18Hide the input switching key if it's not neededJules Aguillon1-1/+2
Android has a new way of switching between input methods and this key need to be hidden in most cases.
2021-04-15Use subtypes to choose layoutJules Aguillon1-23/+54
This removes the "layout" setting. Every layouts that the user could use will appear in the global settings.
2021-04-15Stateless KeyboardData classJules Aguillon1-15/+1
It was a pain to use. It was also a pain to write this though.
2021-04-13Fix layout pref under debug buildsJules Aguillon1-8/+18
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.
2016-12-11switchToNextInputMethod keyjuloo1-0/+8
2015-10-29Move configs to Config objectjaguillo1-2/+14
2015-10-26Last used emojijaguillo1-14/+6
2015-10-24Emoji panejaguillo1-14/+27
2015-10-23Start with emojisjaguillo1-20/+36
2015-10-17Stop special handling of delete keysjaguillo1-12/+12
2015-10-11Key to switch to numeric panejaguillo1-1/+33
2015-10-03Perf improvement (small)jaguillo1-4/+0
2015-10-01Mini fixjaguillo1-0/+17
2015-08-18Accentjuloo1-3/+3
2015-08-08SideBarPreference + Continuing settingsjuloo1-0/+6
2015-08-08Conf key open SettingsActivityjuloo1-2/+6
2015-08-08Start SettingsActivityjuloo1-30/+10
2015-08-08Todo settingsjuloo1-18/+1
2015-08-07Move logcatjuloo1-2/+0
2015-08-04logcat.pyjuloo1-0/+12
2015-08-03Add qwerty layout + popup to change layoutjuloo1-3/+34
2015-08-03Fix del key and keyEvent keysjuloo1-30/+32
2015-08-03Repeat key on long pressjuloo1-1/+1
2015-08-02Send Ctrl/Alt(/Shift) to the applicationjuloo1-16/+34
2015-08-02Fix mini crash + Can disable on keysjuloo1-0/+2
2015-08-01Implement shift keyjuloo1-2/+2
2015-08-01Send keys to the applicationjuloo1-2/+19
2015-08-01Improve KeyValuejuloo1-0/+5
2015-07-31Create KeyboardData class and handle move on keysjuloo1-1/+10
2015-07-30Initial commitjuloo1-0/+25