Commit Graph

903 Commits

Author SHA1 Message Date
Jules Aguillon
e22fc226a1 history entry: Swap the remove button for a paste button 2024-07-06 22:05:45 +02:00
Jules Aguillon
076177ab45 Make the clipboard view 30% taller 2024-07-06 13:53:31 +02:00
Jules Aguillon
26ce238435 Use the same icon for removing history and pin entries 2024-07-06 13:50:28 +02:00
Jules Aguillon
618aac254a clipboard: Add the backspace/delete key 2024-07-06 13:48:51 +02:00
Jules Aguillon
32ae63341d clipboard: Remove keyboard switching keys
These don't have any effect.
2024-07-06 13:45:53 +02:00
Jules Aguillon
caa397dd70 Merge branch 'master' into clipboard 2024-07-06 13:44:55 +02:00
Jules Aguillon
6021a0b83c Fix crash with narrow layouts
The PreferredPos mechanism cause an out of bound access since 773147a.
2024-07-06 13:34:08 +02:00
solokot
89d0e6c063
Update Russian translation (#689) 2024-07-06 11:15:49 +02:00
Jules Aguillon
a2eea76e70 doc: Clarify the possible key values 2024-07-03 00:35:25 +02:00
Sergiy Stupar
2cb5e67d1f
Update Ukrainian translation (#682) 2024-06-30 14:02:56 +02:00
Jules Aguillon
3a371c354b doc: Correct mentions of gestures 2024-06-30 00:46:25 +02:00
Jules Aguillon
bdb080657d Option to disable key repeat
Internally "key repeat" is reword into "long press" when the same
mechanism was used for both features.

The constraint that 'timeoutWhat' must be set to '-1' when no message is
expected has been lifted to simplify the code.
2024-06-30 00:24:39 +02:00
Jules Aguillon
bf33230c26 settings: Reword "Key repeat" into "Long press"
The long press timeout is used for long press on keys that do not
repeat, for example the keyboard switching key.

This must be detached from the key repeat as it might be disableable in
the future and more keys might be longpressable.
2024-06-30 00:06:17 +02:00
Jules Aguillon
318d979f14 Update check_layout.output 2024-06-29 23:56:14 +02:00
Jules Aguillon
f7cd55e965 clipboard: Night mode icons 2024-06-29 23:44:32 +02:00
Jules Aguillon
9b00e33c44 Place the clipboard key on the bottom row 2024-06-29 23:29:36 +02:00
Jules Aguillon
a3bf491c9a Icon for the clipboard key 2024-06-29 23:28:03 +02:00
Jules Aguillon
1b401e55c4 Change the "paste as plain text" icon
To make it less ambiguous with the clipboard key icon.
2024-06-29 23:25:48 +02:00
Jules Aguillon
100e1574d5 Key description for the clipboard key 2024-06-29 23:15:01 +02:00
Jules Aguillon
dcfda35cee Enable the clipboard key by default 2024-06-29 23:12:55 +02:00
Jules Aguillon
143718b1de clipboard: Improve bottom row 2024-06-29 23:10:36 +02:00
Jules Aguillon
2f8a2917a2 clipboard: Confirmation dialog for history entries 2024-06-29 23:06:24 +02:00
Jules Aguillon
8d29d80fce clipboard: Confirmation dialog before deletion
Prevent accidentally deleting a saved clipboard.
2024-06-29 22:53:08 +02:00
Jules Aguillon
700b7e9d19 clipboard: Pasting
The paste button send the content of the pinned clip to the editor the
same way as a string key.
2024-06-29 22:53:08 +02:00
Jules Aguillon
59d2d05c50 clipboard: Add icons for the buttons 2024-06-29 22:53:08 +02:00
Jules Aguillon
d5f36885c4 clipboard: Enable history collection with a checkbox
The feature is off by default for privacy reasons. The checkbox state is
persisted in the configuration.

The history is immediately cleared when it's disabled. The content of
the system clipboard is visible when the history is enabled.
2024-06-29 22:53:08 +02:00
Jules Aguillon
461f966e6e clipboard: Allow removing history entries 2024-06-29 22:53:08 +02:00
Jules Aguillon
3b2fad8996 clipboard: Vertical layout
Put the recently copied text at the top and the pinned text at the
bottom.
This should remain intuitive as the recent history should stay small.
2024-06-29 22:53:08 +02:00
Jules Aguillon
d657d51c2b clipboard: Forget recent copied text after 5 minutes
Slightly improves privacy. Entries older than that are not useful in the
intended use case.
2024-06-29 22:53:08 +02:00
Jules Aguillon
3d95af5806 clipboard: Pinning
Allow recent clips to be pinned. Pinned clips are put a different place
and are persistent.

The pane is split in two columns, the clipboard history and the pinned
clips.

Pinned clips are stored in a new preference file.

Improved pinning layout

clipboard: Remove history entry after pinning
2024-06-29 22:53:08 +02:00
Jules Aguillon
58cb6ca232 Clipboard history pane
Work in progress: It's not yet possible to paste from the pane.

The pane can be switched to and from and displays the strings recently
added to the clipboard.

ClipboardHistoryService listens for change to the system clipboard and
keep the history in memory.
This data is not persisted to the storage.

The maximum size limits the amount of user data stored in memory but
also gives a sense to the user that the history is not persisted and can
be forgotten as soon as the app stops.
2024-06-29 22:53:08 +02:00
Jules Aguillon
45fc18576e Validate more fields in custom layouts
This adds some errors:

- 'script' or 'numpad_script' is set an empty string.
- Multiple '<modmap>' elements.
- 'shift', 'width' and 'height' on every nodes that support them are
  clamped to a valid value.
2024-06-29 22:48:47 +02:00
Jules Aguillon
b432f1d773 Set preferred position for Norwegian extra keys
This should make the QWERTY (US) layout look the same to Norwegian users
as the current latn_qwerty_no layout, allowing it to be changed.
2024-06-24 00:14:26 +02:00
Jules Aguillon
66cf643574 Remove 'loc' keys from latn_qwerty_us
Use the "preferred position" feature to place the removed keys
approximately where they were.
2024-06-24 00:07:56 +02:00
Spike
ada3b5f3b7
doc: Where to put <modmap> (#666)
* Modmap: Where to put it; cancelling built-in mods (#665)

* Correct per Julow: not only Euro layouts

* Post-edit: Doesn't depend on "built-in" layout

* P-vs-L: Change "That is to say", sentence is not a restatement

* Discussion with Julow: Swipe graphic to HTML; at most one modmap

* Swipes: Center tables
2024-06-22 23:27:29 +02:00
Jules Aguillon
6405e5e8be Don't stop keyrepeat after a circle gesture
This was inconsistent with the anticircle and roundtrip gestures.
2024-06-22 23:10:43 +02:00
Sergiy Stupar
460f25317f
Update Ukrainian translation (#670) 2024-06-16 22:39:44 +02:00
alotbsol555
81d1a1a831
Update German translations (#667) 2024-06-16 22:39:26 +02:00
Jules Aguillon
c01b289eaf Don't change input view when configuration changes
This doesn't seem necessary and won't play well with eventual keys that
change the configuration.
2024-06-16 22:20:14 +02:00
Jules Aguillon
a7b79022e5 Launcher activity: Don't consume events in text field
Allow the keybindings to have an effect in the "Try here" text field.
2024-06-16 22:19:27 +02:00
Jules Aguillon
bad2e8c237 Refactor: Remove unecessary view in emoji pane 2024-06-16 22:19:20 +02:00
solokot
b7be19dc1f
Update Russian translation (#656) 2024-06-11 00:54:19 +02:00
Jules Aguillon
b5a96dc4dc Option to tweak or disable the circle gesture 2024-06-09 14:25:19 +02:00
Jules Aguillon
944ed32a37 Use preferred dir when placing a key next to an other 2024-06-09 14:03:02 +02:00
Jules Aguillon
773147ab9c Automatic placement of f11/f12 placeholders 2024-06-09 13:55:27 +02:00
Jules Aguillon
52805d9745 Allow to remove keys Tab and Esc 2024-06-09 13:18:25 +02:00
Jules Aguillon
8d793da6b6 Refactor: Remove the KeyModifier cache 2024-06-09 12:49:23 +02:00
Jules Aguillon
91ace060bc Move diacritics mapping to the compose state machine
This replaces the switch cases in KeyModifier.java with JSON files, one
for each diacritic.

The number of states increases from 6727 to 7377. The apk size slightly
decreases (around 3kb).
2024-06-09 11:53:17 +02:00
Jules Aguillon
ecac6a77f8 compose: Compile several starting states
Sequences from several files are no longer merged but compiled to
separate starting states.

The plan is to use that to represent the diacritics.
2024-06-09 11:52:17 +02:00
Jules Aguillon
a886f6eede compose: Fix misbehaving due to encoding errors
Encoding errors in the compose data compiler due to:
- 'UTF-16' adds a BOM, use 'UTF-16-LE' instead
- 'str.encode' returns a byte array, use 'array' to have a 16-bit char
  array.
2024-06-09 10:35:38 +02:00