abouttreesummaryrefslogcommitdiff
path: root/srcs
AgeCommit message (Collapse)AuthorFilesLines
2022-03-13Avoid showing some symbols twice in Fn modeJules Aguillon3-27/+25
2022-03-13Define localized keys as a set instead of flagsJules Aguillon3-64/+40
Using flags for removing keys like € and ß need too many flags and won't scale to more localized keys.
2022-03-12Fix inconsistent highlighting of lockable keysJules Aguillon1-1/+1
Pointers.getKeyFlags might receive a different KeyValue than what's stored in the pointer due to caching. Compare names instead.
2022-03-06Make the font smaller for the action keyJules Aguillon2-3/+8
2022-03-05Fix action key not updating when switching fieldJules Aguillon1-1/+2
The keyboard was updated before the action key is.
2022-03-05Clicking twice on CTRL or ALT will lock them in 'ON' state (#72)Raphael2-3/+20
* Clicking twice on CTRL or ALT will lock them in 'ON' state * Make Locking behaviour optional, configurable in preferences * Nest the new settings into a different page To avoid spamming the settings page and repetition in the summaries. Cannot be a popup unfortunately because that would require API >= 11. * Add Fn and Meta Co-authored-by: Jules Aguillon <jules@j3s.fr>
2022-03-05Improve the code for dynamic updates of the layoutJules Aguillon4-88/+36
2022-02-27Reduce the text size for some keysJules Aguillon2-15/+19
The symbols are now smaller for Shift, Space, Backspace, Delete and some keys on the bottom row. The previous rule was to make the text smaller for symbols made of several characters. This is changed to a flag approach.
2022-02-27Compute text size depending on actual row heightJules Aguillon1-19/+25
Use the height of the row currently being rendered instead of the base row size. Concretely, the bottom row is slightly smaller and will get slightly smaller text. Also: - Rewrite the label rendering code - Render labels at the middle of the key (was slightly off)
2022-02-27Compute text size relative to key heightJules Aguillon3-15/+12
Instead of a fixed size that don't work at all for bigger screens. Other tweaks: - Use the value-land dimens to vary 'extra_horizontal_margin' - Move label size to Config, because it can change at runtime (rotation) - Slightly decrease the size of "long" symbols
2022-02-26Update symbols from unicode to font-IconRaphael1-7/+6
2022-02-22Tweak repeat timing for modulated keysJules Aguillon1-3/+11
Make modulated keys repeat twice as slow by default and start repeating twice as early.
2022-02-22Send key events for the modifiersJules Aguillon2-19/+38
Before sending a key event while modifiers are active, send events for the modifier keys. Some applications don't look at the "metaState" flags but instead keep track of the up and down events for the modifiers. For example, the basic text views that are in every applications correctly handle the "metaState" flags except for one binding: Selecting text with the arrows while pressing shift.
2022-02-22Update the spanish localeJules Aguillon1-0/+1
To use the new layout.
2022-02-21Improve modulated key repeatJules Aguillon2-11/+31
Change the formula: don't use an external constant, add a state. It's now the ratio between where the finger is at the first repeat and where it is now. Keep the repeat going when swiping into an other key. Currently only for arrows: It's now possible to go from an arrow to an other without waiting again for the key repeat timeout. The backspace and delete keys don't work well with this.
2022-02-20Move pointer handling code to its own classJules Aguillon3-269/+355
Separate the concerns and have a clearer interface between the two parts of the code.
2022-02-19Localize € and £Jules Aguillon3-5/+10
Show these characters only for users that have the corresponding locale installed (a supported eu language for €, en-GB for £). Add these characters to most layouts.
2022-02-19Add Ord+* = °Jules Aguillon1-0/+1
2022-02-19add-ordinal-numbers-symbol-systemRaphael2-2/+21
2022-02-13Define the height of the keyboard relative to the screen sizeJules Aguillon1-4/+19
Depending on the pixel density isn't ideal for a keyboard, which would render differently depending on the "scaling" accessibility option. Landscape mode needs a special values. At the same time, increase the horizontal margin when landscape.
2022-02-13Add Russian layout (#66)Vladimir Chernov1-0/+1
* Add Russian layout Co-authored-by: Jules Aguillon <jules@j3s.fr>
2022-02-13Use the improved font for shift, globe, enter and spaceJules Aguillon1-5/+11
These glyph were available in the custom font but not used yet.
2022-02-13Scale the bottom row depending on the host layoutJules Aguillon1-10/+31
1ff8526 added a bug for layouts that weren't 10 units wide.
2022-02-07Define the bottom row separatelyJules Aguillon2-75/+79
Avoid divergences when the bottom row is modified.
2022-02-07Dvorak layout (#16)AlexandraAlter1-0/+1
2022-02-06Replace unusual return symbolMax Schillinger1-1/+1
2022-02-06Allow egde keys instead of corner keys (swipe vertically/horizontally)Max Schillinger3-21/+68
Add a new boolean parameter "edgekeys" for defining keys that have the additional (swipe) keys on the edges (top, right, left, bottom) instead of at the corners (top left, top right, bottom left, bottom right).
2022-02-06Add the Meta keyJules Aguillon2-1/+5
Currently using the diamond symbol like the history meta key: https://en.wikipedia.org/wiki/Meta_key However, this key is actually interpreted as the Super/Windows key but Android calls it "meta" internally.
2022-01-30Add options for the spacing between the keysJules Aguillon1-6/+10
Two options: vertical and horizontal.
2022-01-30Select theme depending on system settingsJules Aguillon2-17/+41
Automatically choose between the Dark and Light themes.
2022-01-30Improve Action key detectionJules Aguillon2-11/+4
There were two problems: - The Action key was swapped when it shouldn't be. The flag 'IME_FLAG_NO_ENTER_ACTION' wasn't interpreted correctly for inputs that specified both an action and this flag. - The value 'IME_ACTION_UNSPECIFIED' should remove the Action key.
2022-01-29Fn+Tab to send the tab characterJules Aguillon2-0/+2
2022-01-29Add support for the Bulgarian language and layoutJules Aguillon1-0/+1
Thanks Zdravko Iskrenov for the contribution.
2022-01-29Fix modifier not working on non-ASCIIJules Aguillon1-1/+2
Characters defined in layouts that aren't defined in KeyValue weren't recognized as character keys. Not working with modifiers.
2022-01-29Add Latvian specific QWERTY layoutEdgars1-0/+1
A customised Latvian specific QWERTY layout (QWERTY (Latvian)) was added to access all Latvian diacritic characters with a swipe. Additionally caron, cedille and macron accents were enabled for this layout.
2022-01-23Globe key: Open keyboard switching dialogJules Aguillon1-1/+3
instead of immediately switching to the next input method.
2022-01-23Make action key labels translatableJules Aguillon1-6/+8
2022-01-22Use symbols for configuration and emoji keysEdgars1-2/+2
`srcs/juloo.keyboard2/KeyValue.java` was updated to replace `Conf` with `⛭` (`\u2699`) and `:)` with `☻` (`\u263B`).
2022-01-20Add keys for LatvianEdgars3-9/+26
New accents - caron and macron - were defined and QWERTY layout was updated to add accents for Latvian specific characters.
2022-01-20Fix crash when switching appJules Aguillon1-0/+10
2022-01-15German keyboard added (#20)Moini2-1/+2
* Add German metadata translation * Add German keyboard Co-authored-by: Jules Aguillon <jules@j3s.fr>
2022-01-15Fix miscalculation of the space between the keysJules Aguillon2-8/+10
'keyVerticalInterval' was mistakenly used to compute the height of the keyboard and the vertical position of keys. While the code handling pointers did not use this value, the hit box of the bottom row was shifted by several pixels. Make sure 'keyVerticalInterval' is only used for rendering and not for placing the keys.
2022-01-10Swap the Enter and Action keys when neededJules Aguillon4-2/+42
When IME_FLAG_NO_ENTER_ACTION is set.
2022-01-09Add the Action keyJules Aguillon6-13/+83
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-09Add the German languageJules Aguillon2-3/+12
Add the 'ß' character on the bottom-left corner of the 's' key, which is hidden for other languages. Co-authored-by: Moini <moini@noreply.invalid>
2022-01-09Allow to hide more keys than just accentsJules Aguillon4-19/+27
Add the "FLAGS_LANGS" set of flags, which will be used to hide individual keys that are not accents.
2022-01-01Change the key combination for °Jules Aguillon1-5/+2
To Fn+* Was previously accent^+*, which was not available for most languages.
2021-12-30Improve the "precision" optionJules Aguillon2-17/+10
Now named "swiping distance". Changed to a dropdown.
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.