abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2
AgeCommit message (Collapse)AuthorFilesLines
2021-12-30Turn the "precision" option to dp instead of pxJules Aguillon1-5/+13
2021-12-30Add the Black themeJules Aguillon1-0/+1
Friendly to Amoled screens. The background of keys is the same as the background of the whole keyboard: pure black. Colors are also slightly stronger.
2021-12-30Move the border radius from Config to ThemeJules Aguillon3-6/+6
Also, draw activated keys with a round border too.
2021-12-30Add themesJules Aguillon3-19/+28
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-28Use the themes abstractionJules Aguillon2-10/+11
Themes replace 'colors.xml' and soon will replace 'dimens.xml'.
2021-12-28Reference the "special key font" in the Theme objectJules Aguillon3-11/+15
Remove the last cast of the context.
2021-12-28Separate "handler" codeJules Aguillon6-73/+139
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 Aguillon3-28/+32
The goal is to remove a cast of the 'context' into 'Keyboard2'.
2021-12-26Move Theme code to its own classJules Aguillon2-50/+78
2021-12-22Always send the keycode for the tab keyJules Aguillon1-1/+1
Don't write the tab character and always send the keycode, which is most probably handled by applications.
2021-12-22Use the right keycode for the home keyJules Aguillon1-1/+1
The previous keycode wasn't the classical "home" movement key but Android's actual home key, which has no effect when generated from the keyboard.
2021-12-19Avoid crash when removing a layoutJules Aguillon1-2/+1
Might happen when downgrading the app.
2021-12-19Auto-format Java and XML filesJules Aguillon10-736/+736
Use xmllint. Re-indent Java files using spaces.
2021-12-11Add SwedishJules Aguillon3-1/+9
First add the 'ring' accent. The swedish language uses the qwerty layout and three accents (aigu, trema, ring)
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-12-05Fix swapped page_up/page_downJules Aguillon1-2/+2
2021-12-05Add the euro and pound symbolsJules Aguillon1-0/+2
Fn+$ and Fn+# respectively.
2021-12-05Avoid using getWidth() from onMeasure()Jules Aguillon1-6/+7
2021-05-09Fix recently introduced crashJules Aguillon2-3/+6
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 Aguillon3-18/+76
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-08Move the "Ins" key under FnJules Aguillon1-0/+1
2021-05-08Add french quotes, en- and em-dashJules Aguillon1-0/+7
Add more keys under Fn. French quotes are S-<, S->, Fn-" and Fn-S-".
2021-05-08Move inverted punctuation to the tilde modifierJules Aguillon1-3/+6
2021-05-08Improve the numeric keyboardJules Aguillon2-35/+93
2021-05-07Add a dashed circle symbol on accentsJules Aguillon1-6/+6
To help recognize them.
2021-05-07Fix layout not updating after rotationJules Aguillon1-0/+1
Reset the layout on onStartInputView.
2021-05-01Add '¿' and '¡'Jules Aguillon1-0/+2
2021-05-01Better placement of accents on QWERTYJules Aguillon1-6/+6
Also change internal names for accents.
2021-05-01Fix rendering of the first labelJules Aguillon1-7/+8
Caused by a shared Paint not correctly resetted.
2021-05-01Reset keyboard when finishingJules Aguillon1-0/+7
This may cause key repeat continuing for a bit after the keyboard closes.
2021-04-29Highlight activated keysJules Aguillon1-10/+37
2021-04-29Slightly reduce the size of the bottom rowJules Aguillon2-51/+57
2021-04-29Improve the azerty layoutJules Aguillon1-1/+1
- More intuitive placement of (), [], {} and <>. - Move accent keys into the top-left corner, on a key they may be used with. - Some minor changes.
2021-04-29Fix modifiersJules Aguillon1-42/+60
Fixes: - Toggling off a modifier was not possible in the corners (eg. accents). - Modifiers on the same key can't be activated at the same time. - Characters on the same key as a modifier weren't working properly.
2021-04-29Add the "layout" option againJules Aguillon3-26/+40
Some versions of android don't allow to configure several languages.
2021-04-25Tweak dimensionsJules Aguillon2-10/+12
Increase a bit labels size and reduce empty space between keys.
2021-04-24Scale down larger symbolsJules Aguillon1-7/+17
2021-04-24Add the label size optionJules Aguillon2-1/+4
2021-04-24Allow different sizesJules Aguillon2-43/+43
Improve Paint code.
2021-04-21Add some missing keycodesJules Aguillon1-3/+18
Allows to sent ctrl and alt combinations. Notably the ] character.
2021-04-20Disable vibration when holding keysJules Aguillon1-4/+0
2021-04-20Add a setting for precise repeatJules Aguillon2-1/+4
2021-04-20Add precise repeat on some keysJules Aguillon2-31/+50
Repeat speed increase as the pointer is away from the initial position. On arrows, backspace and delete.
2021-04-19Add more characters under accentsJules Aguillon2-12/+56
Notably subscript and superscript digits and some quote characters.
2021-04-19Move some keys under the Fn modifier and move it on the bottom rowJules Aguillon2-29/+50
2021-04-18Add function keysJules Aguillon2-9/+39
Add the Fn modifier that change the digits into F1 to F10.
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 Aguillon8-138/+155
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.