Commit graph

844 commits

Author SHA1 Message Date
Helium314
4a9dc6bff6 reload theme on orientation change
should actually happen anyway, but possibly not for newer android versions?
could help with #401
2024-06-23 16:12:40 +02:00
Helium314
08f194a369 block key swiping while using sliding key input
fixes #892, which also contains the fix by @devycarol
2024-06-21 15:13:13 +02:00
Helium314
3e74a29f2e improve popup key handling and update tests
remove outdated part from layouts.md
fixes #883
2024-06-19 22:42:36 +02:00
Helium314
5b7f4dae4c clarify error messages when layout can't be saved, see #887 2024-06-18 17:51:03 +02:00
Helium314
0b9fb7334d reload the cursor position from text field when in doubt 2024-06-18 00:38:07 +02:00
Helium314
9efb22bd0c fix #881 and improve related tests 2024-06-17 16:05:22 +02:00
Helium314
4ab7e8b78e use fallback layout when custom layout file can't be opened 2024-06-17 15:12:05 +02:00
Helium314
3961060710 add logging that should help with #829 2024-06-15 22:28:18 +02:00
Helium314
0da6f6e4da Revert "adjust alphabet for AlphabetIndexer"
This reverts commit bc1e4d52a8.
see discussion in #803: the commit makes things worse
2024-06-15 22:06:12 +02:00
Helium314
c064ba199c move that special handling for emoji and language switch keys into layouts
for that, a new keyboard_state_selector is added
this allows modifying functional key layouts without having to manually adjust those keys
2024-06-15 21:54:47 +02:00
Helium314
17f30ad6d6 fix typo in split distace (6000 -> 600)
and increase max split distance for high dp devices
fixes #869
2024-06-14 22:01:15 +02:00
Helium314
f7b12757ed set correct icon when voice input key is on keyboard, but no voice input method is available 2024-06-14 18:59:37 +02:00
Helium314
5d0341195e fix newly added layout file not loaded 2024-06-14 18:26:42 +02:00
Helium314
753e5fa6a2 properly open json files
not sure why it works now, while it apparently did not before
2024-06-14 18:17:26 +02:00
Helium314
3eafce9265 update key labels
remove emoji label, not necessary any more as it's a toolbar key
access toolbar labels via enum map
allow CLIPBOARD_CUT key(code)
2024-06-14 17:44:32 +02:00
Helium314
61cff40d3c only use alt-code-while-typing when not clearly inside key
and add alt code to emoji and clipboard keys
fixes #630
2024-06-14 17:08:49 +02:00
Helium314
d1c2ad0a39 fix system sometimes enabling wrong subtype 2024-06-13 20:36:04 +02:00
Helium314
237adc991b properly update toolbar prefs 2024-06-13 20:08:40 +02:00
Helium314
5ccb79a078 disable preview popup for language switch and emoji keys 2024-06-12 23:59:33 +02:00
Helium314
6a34f2c832 improve emoji detection when deleting
still has issues with hand + skin tone emojis
2024-06-12 23:54:23 +02:00
Helium314
d91350524a move cursor in whole codepoints on space / delete swipe
and when space-swiping across emoji, send fake arrow keypress instead (discouraged, but avoids e.g. splitting pirate flag emoji and thus justified)
fixes #859
2024-06-12 22:46:42 +02:00
Helium314
5b1f40f0f6 do a sanity check when setting composing text on text fields that have suggestions disabled
fixes #225
could cause unnecessary text / suggestion reloads or performance regressions, though not found in testing
2024-06-12 20:24:16 +02:00
Helium314
843b8c44f7 replace old fix from 9713c4a25a with improved consistency check
and avoid somewhat unexpected crash
2024-06-11 22:02:32 +02:00
Helium314
ce30c3b294 fix issue with text being inserted when deleting quicky in joplin (and probably other apps) 2024-06-10 22:53:41 +02:00
Helium314
d596c028a1 more logging 2024-06-09 12:12:38 +02:00
Helium314
9c926911fc set preview popup icons as left drawable instead of bottom
fixes #811

remaining issue:
when pressing a key with icon and preview popup before a letter popup, preview and popup height is too low
but this should only trigger rarely, and is not worse than the fixed issue
2024-06-09 11:25:34 +02:00
Helium314
743874f74c remove icon name "undefined" and use null instead 2024-06-08 11:47:42 +02:00
Helium314
a297b6037c fix missing preview popups for keys with icon and negative code 2024-06-08 11:31:40 +02:00
codokie
d11237ba23
add emoji toolbar key (#845) 2024-06-07 08:21:13 +02:00
Helium314
a841777b92 improve currency popup handling 2024-06-06 22:18:53 +02:00
Helium314
bdc418cb70 improve popup key compatibility woith codes and labels 2024-06-06 21:53:23 +02:00
Helium314
1ea8d936a4 upgrade dependencies 2024-06-03 19:07:39 +02:00
Helium314
7b7fcb18c4 disable auto-show/hide toolbar by default
to be consistent with previous behavior
2024-06-02 14:04:53 +02:00
Helium314
53c66b8b84 fix toolbar being visible when device is locked and auto-show toolbar is on 2024-06-02 14:03:09 +02:00
Helium314
bc1e4d52a8 adjust alphabet for AlphabetIndexer, might help with #803 2024-06-01 23:15:41 +02:00
Helium314
a1d32b84fd separate language switch key behavior from key enablement 2024-06-01 22:27:41 +02:00
codokie
b9451e4f09
auto show / hide toolbar (#674)
Co-authored-by: codokie <@>
Co-authored-by: Helium314 <helium314@disroot.org>
Co-authored-by: Helium314 <helium314@mailbox.org>
2024-06-01 14:32:12 +02:00
codokie
e357f84572
Add toast notification when copying from clipboard (#752)
and use the toast for showing dictionary on double-long-press word: switch from one ugly workaround (popup menu) to another (hiding more suggestions panel)

Co-authored-by: codokie <@>
Co-authored-by: Helium314 <helium314@mailbox.org>
2024-05-31 17:01:50 +02:00
Helium314
df6af1f07e fix broken popup key width in number layouts 2024-05-31 12:10:46 +02:00
Helium314
af636badab add comma key popups for number layouts
(for phone layouts it's on period because there is no comma key)
fixes #823
2024-05-31 09:58:35 +02:00
Helium314
d171c6b3c6 reduce issues when splitting layout with customized functional keys and uncommon space bar 2024-05-31 09:42:49 +02:00
Helium314
f8a2e2adcc move toolbar preferences to a separate fragment
with 2 more settings coming soon this is probably justified
2024-05-28 22:02:31 +02:00
Helium314
388366c242 make long-press toolbar pinning optional 2024-05-27 20:34:26 +02:00
Helium314
0f503389b3 minor cleanup and add comment 2024-05-27 20:21:59 +02:00
Helium314
7473d5b32b fix unwanted popups on language extra keys
regression from recent parser updates
2024-05-27 18:36:35 +02:00
Helium314
b868b583dd remove old device-dependent behavior
not updated in 10 years, only few of those are still in use

device-specific default key press volume and vibration duration
and a workaround for bad touch firmware on Motorola Xoom
2024-05-26 20:25:13 +02:00
Helium314
fb26eb8e7a fix inconsistent behavior when switching text fields
actually the previous input attributes were used initially, which caused suggestions to show up or not depending on the previously selected field
moving the settings reload should be safe, at least i checked for potential issues
2024-05-26 19:34:55 +02:00
Helium314
af3d0535b2 fix issue when trying to paste text while cursor is in a word 2024-05-26 19:15:57 +02:00
Helium314
6c2a3e8b5f add tab key 2024-05-26 14:43:37 +02:00
Helium314
7d1627ffc6 adjust locale confidences in incognito mode 2024-05-26 14:17:31 +02:00