Michael Telatynski
f53eb4eeed
Fix tab trapping behaviour
2021-08-12 11:27:34 +01:00
Michael Telatynski
f9527c9d6b
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/a11y/composer-list-autocomplete
...
Conflicts:
src/components/views/rooms/BasicMessageComposer.tsx
src/editor/autocomplete.ts
2021-08-12 11:21:20 +01:00
Šimon Brandner
ccaa69b25b
Remove unnecessary code
...
This somehow doesn't seem to be neccessary anymore, I don't really know why but everything seems to work without it
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-12 08:53:42 +02:00
Travis Ralston
a149108a7d
Merge pull request #6353 from SimonBrandner/feature/improved-composer
...
Improve handling of pills in the composer
2021-08-11 10:55:13 -06:00
Šimon Brandner
4f0c800cad
Merge remote-tracking branch 'upstream/develop' into feature/improved-composer
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-06 07:45:17 +02:00
Travis Ralston
fea30e5f5f
Fix disabled state for voice messages + send button tooltip
...
Fixes https://github.com/vector-im/element-web/issues/18413
2021-08-05 12:38:15 -06:00
Šimon Brandner
621aee6f9a
Merge remote-tracking branch 'upstream/develop' into feature-surround-with
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-20 13:21:52 +02:00
Michael Telatynski
de88a39604
delint and improve ts
2021-07-15 10:09:24 +01:00
Michael Telatynski
ebfe38dc4a
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/a11y/composer-list-autocomplete
...
Conflicts:
src/components/views/rooms/BasicMessageComposer.tsx
src/editor/autocomplete.ts
2021-07-15 09:59:40 +01:00
Michael Telatynski
51f0f5718a
improve types
2021-07-12 13:26:34 +01:00
Šimon Brandner
069c1f4665
Make code a bit cleaner
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-12 12:52:05 +02:00
Šimon Brandner
780f9b6add
Handle pill deletion
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-12 09:29:41 +02:00
Michael Telatynski
5d1a1b46f3
Fix instances of the Edit Message Composer's save button being wrongly disabled
2021-07-01 23:48:52 +01:00
Michael Telatynski
e768ecb3d0
Typescript conversion of Composer components and more
2021-06-30 13:01:26 +01:00
J. Ryan Stinnett
ae0a8b8da4
Auto-fix lint errors
2021-06-29 13:11:58 +01:00
Šimon Brandner
d7b10e2ff4
Simplifie code
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-06-21 17:26:06 +02:00
Šimon Brandner
3e97847e7d
Get selection range only if necessary
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-06-20 08:47:21 +02:00
Šimon Brandner
a772460f63
Simplifie surround with and make it more extensible
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-06-20 08:38:01 +02:00
Šimon Brandner
38c0cd2716
Cache surroundWith setting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-06-20 08:21:33 +02:00
Šimon Brandner
686e7d18c3
Merge remote-tracking branch 'upstream/develop' into feature-surround-with
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-06-20 08:14:12 +02:00
Michael Telatynski
264ab925cd
delint
2021-05-26 14:21:28 +01:00
Michael Telatynski
1ffbaee560
update style of imports in all modified files
2021-05-26 14:14:55 +01:00
Michael Telatynski
a757f589bd
post-merge fixup
2021-05-24 21:57:59 +01:00
Michael Telatynski
d8acc0612a
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/12740
...
Conflicts:
src/components/views/rooms/EditMessageComposer.js
src/components/views/rooms/SendMessageComposer.js
2021-05-24 21:57:38 +01:00
Michael Telatynski
28eaac0ef8
remove dead code and fix some types
2021-05-20 22:25:19 +01:00
Michael Telatynski
60e7089c77
post-merge fixes, the new keybindings stuff made it messy
2021-05-11 11:14:21 +01:00
Michael Telatynski
60d3da2441
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/a11y/composer-list-autocomplete
...
Conflicts:
src/components/structures/LoggedInView.tsx
src/components/views/rooms/BasicMessageComposer.tsx
src/editor/autocomplete.ts
2021-05-11 10:59:22 +01:00
Travis Ralston
fedb5b9f63
Fix disabled state of the composer
2021-04-14 20:12:10 -06:00
Michael Telatynski
5f59e39958
Apply the same to quoting & inserting of emoji then consolidate
2021-04-13 15:09:37 +01:00
Michael Telatynski
ace3a62bac
Allow click inserting mentions into the edit composer too
2021-04-13 14:52:26 +01:00
Clemens Zeidler
57cd8afbc4
Split ApplySelection into CompleteOrPrevSelection and CompleteOrNextSelection
...
When moving through the autocomplete selection list distinguish between
the following cases:
1) When there is no autocomplete window open, only open one and select
the first item when the CompleteOrPrevSelection /
CompleteOrNextSelection actions are emitted (e.g. by pressing SHIFT +
TAB, TAB)
2) Otherwise navigate through the selection list (e.g. SHIFT + TAB, TAB,
UP, DOWN)
- Remove references to raw keyboard events in autocomplete.ts
- Clarify the purpose of startSelection (previously onTab)
Signed-off-by: Clemens Zeidler <clemens.zeidler@gmail.com>
2021-03-29 13:38:03 +13:00
J. Ryan Stinnett
33e8edb3d5
Merge pull request #5720 from czeidler/key-bindings
...
Decouple key bindings from event handling
2021-03-26 15:14:38 +00:00
Travis Ralston
0f09eb3214
Add more notes
2021-03-17 00:12:03 -06:00
Travis Ralston
b5d32d92f3
Wire up a simple record button
2021-03-16 22:58:44 -06:00
Clemens Zeidler
2a21d45ac0
Merge branch 'develop' into key-bindings
2021-03-12 16:44:12 +13:00
Travis Ralston
71b8959d3c
Apply suggestions from code review
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2021-03-09 09:36:17 -07:00
Travis Ralston
c5935dbc61
Batch of views getting replaceableComponent decorators
2021-03-08 20:23:46 -07:00
Clemens Zeidler
601be50b71
Split KeyAction into multiple enums
...
This gives some additional type safety and makes enum member usage more
clear.
2021-03-01 21:43:00 +13:00
Michael Telatynski
c05eceef7f
Rework composer autocomplete to be smarter and not trap tab
2021-02-17 15:39:07 +00:00
Clemens Zeidler
54c38844d2
Use key bindings in BasicMessageComposer
2021-02-17 22:00:48 +13:00
Šimon Brandner
8eb0707bba
Merge branch 'develop' into feature-surround-with
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-12 07:56:44 +01:00
Šimon Brandner
b330dd55a0
Hide surround with behind a setting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-12 07:53:09 +01:00
J. Ryan Stinnett
84b1f2e6c6
Resolve typing errors after TypeScript upgrade
2021-01-27 12:42:37 +00:00
Šimon Brandner
e90f5ddf5b
Added a comment
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-19 19:36:56 +01:00
Šimon Brandner
c6a058fb6f
Added surround with
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-19 19:35:05 +01:00
macekj
200c061968
remove unnecessary plus checks in emoji regexes
...
Signed-off-by: macekj <macekj@umich.edu>
2020-11-27 19:41:45 -05:00
macekj
2ffdfaef68
remove unnecessary lookbehind and comment emoticon regex
...
Signed-off-by: macekj <macekj@umich.edu>
2020-11-24 11:42:53 -05:00
macekj
ba8d02a808
add quick shortcut emoji feature and tests
...
Signed-off-by: macekj <macekj@umich.edu>
2020-11-17 17:36:58 -05:00
Michael Telatynski
120f269190
Track replyToEvent along with CIDER state & history
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-06 14:47:53 +01:00
Michael Telatynski
ffa7ceb70e
Trim range when formatting so that it excludes leading/trailing spaces
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-29 14:15:20 +01:00