Commit graph

53 commits

Author SHA1 Message Date
Helium314
ef3191a2eb prepare for selecting text with cursor movement keys when shift is enabled manually
not enabled, as it's not working reliably
2025-06-15 17:41:05 +02:00
Helium314
e430d13c4a improvements to hardware keyboard handling 2025-06-14 12:53:46 +02:00
Helium314
9c97a6b9bf move some key press logic from LatinIme into KeyboardActionListener 2025-06-14 12:16:29 +02:00
Helium314
a37de668c0 enable hardware keyboard handling again, with improved handling 2025-06-14 11:29:26 +02:00
Helium314
c8322dd4a2 make KeyCode.IME_HIDE_UI work
fixes GH-1272
2025-06-08 11:16:00 +02:00
Helium314
ccc287c4ea use CombiningRules extra value for setting the combiner
allows flexibility which is needed for the combiner suggested in GH-214
2025-06-07 21:44:14 +02:00
Helium314
867438fdc0 simplify the way of setting suggestions
remove the excursion to latinIME
have Suggest return suggestions instead of calling a callback
now the relevant code can be mostly found in inputLogic (except for handling batch input)
2025-06-07 20:26:06 +02:00
Helium314
7499c38e13 add missing key codes to Key.isModifier, and move the information into KeyCode 2025-06-01 18:40:54 +02:00
Helium314
199f177c2d add left/right variants of alt, ctrl and meta
for picky apps, fixes GH-1579
2025-05-18 15:25:10 +02:00
Helium314
e6ec1c7bca fix debug mode crash sometimes occurring when deleting korean
fixes GH-1551
2025-05-10 17:37:20 +02:00
Helium314
366ee5ae28 workaround for page start / page end toolbar keys not working in compose text fields
fixes GH-1477
2025-05-04 20:33:41 +02:00
Eran Leshem
4f356086d7
Fix direction of word-left & word-right with RTL scripts (#1530) 2025-05-03 07:02:38 +02:00
Helium314
1d441a8ca6 more workarounds for Korean
not just space might delete text, but also other separators
now this problem is avoided in a more generic way
fixes GH-1447
2025-04-27 18:59:29 +02:00
Helium314
8932fc84e1 add timestamp keycode and setting for adjusting format, fixes GH-846 2025-03-29 12:36:07 +01:00
Helium314
f5bc89b91d make reverting autocorrect on backspace optional
fixes GH-210
2025-03-26 19:18:13 +01:00
Helium314
c0b14635fd fix issue that could result in autospace being added before period 2025-03-26 18:29:57 +01:00
Helium314
66a07eb8d2 Add more settings for autospace
fixes GH-1348
fixes GH-876
2025-03-26 18:05:00 +01:00
PurplePickleMonster
679754bb2d
Add toolbar option to toggle Split Keyboard Setting - Enhancement #1218 (#1263)
---------

Co-authored-by: Josh <joshtidal24@gmail.com>
Co-authored-by: Helium314 <helium314@mailbox.org>
2025-02-09 11:32:16 +01:00
Helium314
c0b3e76741 use backspace key event instead of deleteSurroundingText when a browser claims it does not have text before the cursor
fixes #1337
2025-02-06 22:48:45 +01:00
Helium314
f2a46cfa9a disable undo-like functionality for textInput, fixes #1019 2025-02-03 00:20:48 +01:00
Helium314
419c0d847b switch from start / stop one-handed mode key codes to a toggle code
mainly so there is no awkward state-dependent key code on the toolbar key
2025-01-26 09:48:21 +01:00
Helium314
7e3657185f prevent selected text being the first suggestion when overwriting with glide typing
fixes #1284
2025-01-12 21:02:29 +01:00
Helium314
d3bd97a104 reload text on selection updates even if selection is as expected
if composing region was changed
e.g. KDE Connect removes composing region after entering a letter, and we should be able to deal with it
this is not really a good solution, as it will reload the suggestions, which flashes the underline and has noticeable performance impact

fixes #1141
2025-01-05 13:18:14 +01:00
Helium314
6e50d6e208 perform recapitalization on shift only in alphabet mode
fixes #1256
2025-01-03 18:50:04 +01:00
Helium314
a3bc3b56ff fix clipboard suggestion being shown for a split second when starting gesture typing 2024-07-10 16:32:18 +02:00
codokie
bdab98c2c9
Clipboard suggestions (#647) 2024-07-05 23:14:54 +02:00
Devy Ballard
bcf2a52d6a
More cursor keys (#933) 2024-07-03 22:42:33 +02:00
Helium314
e57e2e8de5 dont store cursor position when it can be reloaded before actually using the position
should fix #935
also make expected selection start / end private (access still via get methods)
2024-07-03 22:30:47 +02:00
Helium314
2f6bef478e add new key codes for a bunch of hw keyboard keys (no labels except for escape)
also make sure they are handled together with meta-state (e.g. ctrl+arrow keys)
fixes #237
2024-06-30 11:27:45 +02:00
codokie
fc0d27459f
fix phantom space after double quotes (#842)
and add a bunch of related tests

---------

Co-authored-by: Helium314 <helium314@mailbox.org>
2024-06-24 18:32:16 +02:00
Helium314
0b9fb7334d reload the cursor position from text field when in doubt 2024-06-18 00:38:07 +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
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
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
codokie
2c24f190c1
Allow clear clipboard history toolbar key in normal toolbar (#679)
Co-authored-by: codokie <@>
Co-authored-by: Helium314 <helium314@disroot.org>
2024-05-25 23:12:11 +02:00
Helium314
71727de5a0 add basic support for modifier keys, fixes #479 2024-05-17 17:24:34 +02:00
Helium314
34d8bd16f0
Migrate functional key layouts to json (#778)
Now the functional key layouts should be (mostly) compatible to FlorisBoard
Not yet customizable, this is a large step towards customizable functional key layouts
2024-05-11 15:41:00 +02:00
codokie
83fc10ff02
Add long press functions to more toolbar keys, and more clipboard history toolbar keys (#691)
Co-authored-by: codokie <@>
2024-05-01 22:44:51 +02:00
Helium314
da467a6751 mark some getText methods as nullable and avoid related issues
fixes one of the crashes in #723
2024-04-19 21:46:13 +02:00
Helium314
a9411b3631 properly re-sort the list when copying an existing clipboard entry 2024-04-12 17:35:57 +02:00
codokie
f915e46468
cut toolbar key (#678) 2024-04-12 17:05:53 +02:00
Helium314
f07c6d9c77 send key event instead of text when entering numbers in a non-text field
fixes #585
2024-03-24 07:38:51 +01:00
Helium314
7adeb408cc no need to get editorInfo for inputType 2024-03-24 07:09:35 +01:00
Helium314
4b52f2d51d properly determine length of emojis when deleting
fixes issue described in https://github.com/Helium314/HeliBoard/issues/426#issuecomment-1944132643, but not the initial problem
2024-03-03 14:48:03 +01:00
Helium314
fe5aa2c33c remove unused SYMBOL_SHIFT key 2024-03-02 21:07:27 +01:00
Helium314
a34b3f4cdd switch internal codes for functional keys to the same as florisboard
for better compatibility of layouts
also convert labels
2024-03-02 21:02:48 +01:00
Helium314
7b0ee924ae use less specific key codes 2024-03-02 18:52:55 +01:00