abouttreesummaryrefslogcommitdiff
path: root/srcs
AgeCommit message (Collapse)AuthorFilesLines
2022-05-29Automatically place localized keys on the layoutsJules Aguillon3-25/+100
Layouts no longer need to mention every localized keys and dead keys. They are now placed automatically starting from the second row on the bottom-right corner. The "loc " prefix is not removed to still be able to define a more optimal and consistent placement for some extra keys (eg. 'ß' near 's'). Programming layouts no longer need to place every dead keys.
2022-05-08Specify localized keys in each layoutsJules Aguillon1-15/+26
Each layouts can chose which key are localized instead of specifying it globally for each key. Important keys are no longer removed from layouts if the 'extra_keys' mechanism is not working properly. This can happen if language tags specified in method.xml don't match the user's language. Removed some currency symbols from some layouts. They are all in the Fn layer.
2022-05-08Find closest key furtherJules Aguillon1-1/+1
The previous limit was checking d-1 and d+1, the new limit also tries d-2 and d+2.
2022-05-08Fix vibration when pointer move slightlyJules Aguillon2-24/+17
Fix the bug introduced in the parent commit.
2022-05-08Better handling of removed keys and swipe getureJules Aguillon3-34/+42
The "closest key" logic must be careful not to reveal keys removed by a modifier. Must check [_handler.onPointerSwipe] for every candidate values. [selected_value] is changed back to [selected_direction]. This adds a new bug: When the direction change, the selected value might not change but a vibration will be triggered anyway.
2022-05-08Improve nearest key computationJules Aguillon2-79/+35
getAtDirection was too hard to maintain and might contain bugs. Change slightly the meaning of directions and implement a the nearest key calculation as a loop.
2022-05-08only vibrate when the swipe key changesRodrigo Batista de Moraes2-31/+40
2022-05-08use the closest swipe key on swipeRodrigo Batista de Moraes2-19/+106
fix a direction
2022-05-07Set the color of the navigation barJules Aguillon2-0/+34
Since SDK 21, applications can set the background color of the navigation bar. This is normally simply an item in a theme but it is more complicated for keyboards.
2022-05-01Add support for Hungarian layout (#127)Tibor Billes1-0/+1
2022-05-01Fix latched pointers accumulating on the same keyJules Aguillon1-3/+6
It was possible to latch and lock the same modifier several time at the same time independently. Remove that.
2022-05-01Fix crash when IME not enabledJules Aguillon1-1/+2
This is unexpected but happened to a user. Perhaps because the OS returned bogus or fake results in imm.getEnabledInputMethodList ?
2022-04-30Fix modifiers not cleared when presses overlapJules Aguillon2-7/+26
When typing fast, a second key might be pressed before the first is released. Clearing modifiers earlier would prevent this but would break modifiers placed in corners (especially the accent keys). Instead, don't take latched modifiers into account when registering the second press. A new flag is needed to not interfere with holding modifers, which is merged with the norepeat flag.
2022-04-30Record activated modifiers on key downJules Aguillon2-19/+25
The View no longer keeps flags for something other than rendering.
2022-04-24Remove build dependency on FontforgeJules Aguillon2-2/+2
The required version of fontforge (from 2020!) is not available in many distros. This is an annoying for contributors and greatly complicated the CI and F-Droid scripts. The generated font file is now included in the sources. Fontforge is still needed when adding new glyphs but this is not a common operation.
2022-04-24Added neo 2 layout (#125)matthiakl1-0/+1
* Added neo 2 layout * Move accents away from screen edge into second row
2022-04-24Add Double acute diacriticJules Aguillon3-1/+26
Will be used by the Hungarian language.
2022-04-24Fix cedilla glyph is invertedJules Aguillon1-4/+6
2022-04-24Add support for LithuanianJules Aguillon4-1/+35
Requires two new diacritics: ogonek and dot_above. The new accents are also added to the Latvian layout as the two language can be close but not to the other localized layouts. A new mechanism is needed to reproducibly add extra keys to layouts without manual placement.
2022-04-16Fix compatibility with Android 6Jules Aguillon3-31/+41
Android 6 uses Java 1.7, the only incompatible feature in use was lambdas.
2022-04-06Fix mismatch layout nameJules Aguillon1-1/+1
The Korean layout id was not consistent and this caused a crash.
2022-04-06Fix compat with older version of AndroidJules Aguillon1-2/+2
Resources.getFloat is new from API 29.
2022-04-03Add the Programming Layout optionJules Aguillon4-12/+44
Allow specifying a layout for programming and add a key for switching to it easily. The switching key is placed on the top edge of the space bar. The option has no effect by default because the ergonomic isn't ideal, it needs to be enabled explicitly. Users of Latin-script languages certainly prefer to use one layout (for programming or not). This feature might be removed in favor of a better language-switching mechanisms in the future.
2022-04-03Rename the Meta keyJules Aguillon1-1/+1
The symbol isn't clear enough.
2022-04-03Swap Ctrl and switch_numeric keysJules Aguillon1-2/+2
The switch_numeric key is generally more important, especially in the numeric pane.
2022-04-02Update Space GlyphRaphael2-4/+9
Revert to previous version, the original google material icon, which is not rounded, and it looks better with the rest of the keyboard, also more correct to represent the open box unicode space char, instead of a smile
2022-04-02Add currency symbols under the Fn keyJules Aguillon1-2/+7
Fn+e = € Fn+l = £ Fn+r = ₹ Fn+y = ¥ Fn+c = ¢ Fn+p = ₱
2022-04-02`Arrows` and `Box` system (#114)Raphael3-2/+76
* Add `Arrows` and `Box` accent system
2022-04-02Add Korean layout (#115)nickid1-0/+1
* Add Korean layout
2022-04-02Compute the swipe distance from the physical dpiJules Aguillon1-3/+5
The previous computation was very different depending on the device's screen and accessibility options. Given that the keyboard is supposed to fill all the space in one dimension, the dpi unit makes little sense. The formula doesn't mean anything in particular, it takes into account both dimensions (x and y) and should be close to the dpi in the diagonals (which is the direction of swipe). This changes the actual value, on a 1920x1080 480dpi screen, the value is increased by 20%.
2022-03-31µ, æ and œ also generated by FnArenaL51-7/+4
2022-03-31Add arrowsArenaL51-0/+8
Add simple arrows to the numeric keypad. Using the Fn key with these arrows will output double arrows.
2022-03-31Add non-breaking space as Fn+SpaceArenaL52-0/+2
2022-03-31Add extra symbols to FnArenaL51-46/+25
Also removed almost all combinations of diacritics and symbols to create extra symbols.
2022-03-25Add glyphs for Tab, Backspace and DeleteJules Aguillon4-3/+20
Tab is from IcoMoon. Backspace and Delete are from materialdesignicons.
2022-03-24Improve glyphs for accentsJules Aguillon11-694/+107
The accents are taken from the Roboto Regular font (Apache 2.0), added the dotted circle and exported with FontForge. The argument to FontForge's Import function are changed, the fifth argument controls the accuracy and needed to be lowered otherwise the grave accent wouldn't be rendered at all.
2022-03-24Update Home and End glyphsRaphael2-6/+18
Revert them to previous version, but now using SVG icons instead of a ttf font file
2022-03-21Correct displayed value when cancelling settings modificationArenaL52-0/+8
When changing any numeric setting and cancelling this change, the change would not be persisted, but the summary in the setting screen would show the last position of the slider instead of the correct unchanged value. This commit fixes this on the most simple way by resetting the slider position to the persisted value.
2022-03-19Add F11 and F12Jules Aguillon2-14/+28
These keys are shown only when Fn is activated, "placeholder" keys are placed in the layouts.
2022-03-19Allow modifiers to hide keysJules Aguillon4-36/+66
Modifiers can temporarily remove a key from the layout by returning 'null'. Make sure pointer handling code handle these modified keys gracefully and doesn't trigger a key event and a vibration for the removed key.
2022-03-18Add glyphs for accent keysJules Aguillon11-9/+713
The "dotted circle" character combined with the accent was badly rendered on many devices.
2022-03-18Build all special glyphs from SVGJules Aguillon13-15/+55
Recover the provenance of each glyphs and remove the base_font.ttf file.
2022-03-17Stateless build of the special font fileJules Aguillon9-5/+68
Keep the glyphs in SVG format and build the font using a FontForge script. A part of the previous font is kept because the sources is lost. This adds a new dependency to the build system, fontforge.
2022-03-17Avoid ghost touches while holding modulated keysJules Aguillon1-0/+15
On some devices, bogus touch events can be sent while holding a key. With modulated keys, it can happens on top of other keys. Ignore every new pointers when a modulated key is pressed.
2022-03-16Show the switching key if there's several languagesJules Aguillon1-1/+4
Ensure the switching key is shown when there's several subtypes enabled, even if Android says not to show it.
2022-03-15Brazilian portuguese layout (#91)igorSilCar1-0/+1
* Providing a comprehensible Brazilian Portuguese keyboard layout removed cedille as it is already provided by an independent key; changed layout to correspond to the locale
2022-03-15Handle CANCEL touch eventsJules Aguillon2-3/+16
Handling this event is part of the API but was never done. This caused unstoppable key-repeat. This event isn't common, the only way I found on Android 10 is to switch to the emoji keyboard while holding a key. Some apps might cause this event more often.
2022-03-15Add Swedish layoutJacob Strömgren1-5/+6
2022-03-15Log editor infos while debuggingJules Aguillon1-0/+19
Useful when debugging why the keyboard doesn't work as expected with a specific app.
2022-03-13Fix crash since 2ea256eJules Aguillon1-1/+1