Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shift+Return repeats the last character #17215

Closed
MisterAI opened this issue May 9, 2021 · 9 comments · Fixed by matrix-org/matrix-react-sdk#7665
Closed

Shift+Return repeats the last character #17215

MisterAI opened this issue May 9, 2021 · 9 comments · Fixed by matrix-org/matrix-react-sdk#7665

Comments

@MisterAI
Copy link

MisterAI commented May 9, 2021

Description

When entering a new line via Shift+Return when composing a message the last character of the current line is automatically added as the first character of the new line (the cursor is placed before the repeated character).

Steps to reproduce

  • Go to "All settings" -> "Preferences" -> Activate "Use Ctrl + Enter to send [...]"
  • Start typing a message in any chat (room)
  • Hit Shift + Return

Example result:

Test
t

Expected result:

Test
empty line

Log: not sent

Version information

  • Platform: desktop

For the desktop app:

  • OS: Linux Mint 18.3
  • Version:
    • Element version: 1.7.25
    • olm version: 3.2.1
@SimonBrandner
Copy link
Contributor

Looks like this happens only on Chromium (and desktop as it uses it)

@t3chguy
Copy link
Member

t3chguy commented May 10, 2021

Index: src/KeyBindingsDefaults.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/KeyBindingsDefaults.ts	(revision 45acf70b00cb0c51740455d09164b1c3c033b5f3)
+++ src/KeyBindingsDefaults.ts	(date 1620659769892)
@@ -131,6 +131,13 @@
                 key: Key.ENTER,
             },
         });
+        bindings.push({
+            action: MessageComposerAction.NewLine,
+            keyCombo: {
+                key: Key.ENTER,
+                shiftKey: true,
+            },
+        });
     } else {
         bindings.push({
             action: MessageComposerAction.Send,

is a working patch but it kind of feels like the KeyBindingsManager needs a concept of "don't care" for some of ctrl/meta/shift/alt/cmd

@SimonBrandner
Copy link
Contributor

SimonBrandner commented May 10, 2021

Yep, that would be nice - I wonder if @czeidler has any thoughts on this.

I am also probably missing what is it that exactly happens when you do shift-enter

@czeidler
Copy link

Do you know why this is happening? I had a quick look but could figure out why it inserts the last character. Shouldn't the normal text input handle it correctly automatically?

@SimonBrandner
Copy link
Contributor

I've got no idea why it inserts the last character 🤷‍♂️ This appears to be caused by how the composer works? It might make sense to dig into why it is necessary to do model.insert() (or whatever is the name of that method)

@czeidler
Copy link

czeidler commented May 12, 2021

Can confirm that it works as expected in Firefox but not in Chrome.

Ran it through the debugger and it seems like Chrome adds two carriage returns \n\n when at the end of the line and shift + Enter. For example, in Chrome:

  1. With an oldValue = 'abc' and caret at position 3 the newValue is 'abc\n\n'.
  2. With an oldValue = 'abc' and caret at position 2 the newValue is 'ab\nc'.

Is that expected Chrome behavior or is that a bug? This results breaking the line at the wrong position in the model. Could add a workaround for that if this behavior isn't there for some purpose...

@t3chguy I actually thought about some fuzzy "I don't care" matching but then decided against it. The reason for that was that if the user enters a fuzzy key combo, the user might have done this accidentally. In this case, applying the keybinding would probably be very frustrating (especially when sending the message too early). On the other hand, if the fuzzy key combo was entered on purpose and nothing happens the user simply has to re-enter the correct, exact combo. I argue that the exact matching is less frustrating to the user. Furthermore, it keeps things simple.

@czeidler
Copy link

The problem actually happens at every end of line. Below is a fix. However, I have a different solution in a pull request.

@@ -335,6 +335,20 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
         this.modifiedFlag = true;
         const sel = document.getSelection();
         const {caret, text} = getCaretOffsetAndText(this.editorRef.current, sel);
+        // On Chrome shift+enter generates a double carriage return sequence '\n\n' when:
+        // 1) the previous char is not a \n
+        // 2) the next char is a \n
+        // Also see #17215.
+        // The model gets confused by this unexpected input produces an incorrect line break.
+        // The following block sanitizes the text before passing it to the model.
+        if (event.inputType === 'insertLineBreak' && text.substr(caret.offset - 1, 2) === '\n\n') {
+            const previousValue = this.props.model.parts.reduce((text, p) => text + p.text, "");
+            if (previousValue.length === text.length - 2) {
+                this.props.model.update(text.slice(0, caret.offset) + text.slice(caret.offset + 1),
+                    event.inputType, caret);
+                return;
+            }
+        }
         this.props.model.update(text, event.inputType, caret);
     };

@mcg-matrix
Copy link

Example result:

Test
t

Expected result:

Test
empty line

I can report that this unexpected behaviour still occurs in Element-Desktop installed via Debian package "element-desktop" version 1.9.5 provided by https://packages.riot.im/debian/.

@SimonBrandner SimonBrandner self-assigned this Jan 28, 2022
su-ex added a commit to SchildiChat/element-desktop that referenced this issue Feb 15, 2022
* Support a config option to change the default device name ([\#20790](element-hq/element-web#20790)).
* Capitalize "Privacy" in UserMenu ([\#7738](matrix-org/matrix-react-sdk#7738)). Contributed by @aaronraimist.
* Move new search experience to a Beta ([\#7718](matrix-org/matrix-react-sdk#7718)). Fixes element-hq/element-meta#139 element-hq/element-web#20618 and element-hq/element-web#20339.
* Auto select "Other homeserver" when user press "Edit" in homeserver field ([\#7337](matrix-org/matrix-react-sdk#7337)). Fixes element-hq/element-web#20125. Contributed by @SimonBrandner.
* Add unread badges and avatar decorations to spotlight search ([\#7696](matrix-org/matrix-react-sdk#7696)). Fixes element-hq/element-web#20821.
* Enable location sharing ([\#7703](matrix-org/matrix-react-sdk#7703)).
* Simplify Composer buttons ([\#7678](matrix-org/matrix-react-sdk#7678)).
* Add a warning to the console to discourage attacks and encourage contributing ([\#7673](matrix-org/matrix-react-sdk#7673)). Fixes element-hq/element-web#2803. Contributed by @SimonBrandner.
* Don't show replaced calls in the timeline ([\#7452](matrix-org/matrix-react-sdk#7452)). Contributed by @SimonBrandner.
* Tweak `/addwidget` widget names ([\#7681](matrix-org/matrix-react-sdk#7681)).
* Chat export parameter customisation ([\#7647](matrix-org/matrix-react-sdk#7647)).
* Put call on hold when transfer dialog is opened ([\#7669](matrix-org/matrix-react-sdk#7669)).
* Share e2ee keys when using /invite SlashCommand ([\#7655](matrix-org/matrix-react-sdk#7655)). Fixes element-hq/element-web#20778 and element-hq/element-web#16982.
* Tweak spotlight roving behaviour to reset when changing query ([\#7656](matrix-org/matrix-react-sdk#7656)). Fixes element-hq/element-web#20537 element-hq/element-web#20612 and element-hq/element-web#20184.
* Look up tile server info in homeserver's .well-known area ([\#7623](matrix-org/matrix-react-sdk#7623)).
* Add grouper for hidden events ([\#7649](matrix-org/matrix-react-sdk#7649)).
* The keyboard shortcut is control (or cmd) shift h. ([\#7584](matrix-org/matrix-react-sdk#7584)). Contributed by @UwUnyaa.
* [Release] Fix cutout misalignment on some decorated room avatars ([\#7785](matrix-org/matrix-react-sdk#7785)).
* [Release] Fix add existing space not showing any spaces ([\#7756](matrix-org/matrix-react-sdk#7756)).
* [Release] Inhibit Room List keyboard pass-thru when the search beta is enabled ([\#7754](matrix-org/matrix-react-sdk#7754)).
* [Release] Fix space member list not opening ([\#7755](matrix-org/matrix-react-sdk#7755)).
* Null-guard ELS from null summaryMembers ([\#7744](matrix-org/matrix-react-sdk#7744)). Fixes element-hq/element-web#20807.
* Improve responsiveness of the layout switcher ([\#7736](matrix-org/matrix-react-sdk#7736)).
* Tweak timeline card layout ([\#7743](matrix-org/matrix-react-sdk#7743)). Fixes element-hq/element-web#20846.
* Ensure location bodies have a width in bubbles ([\#7742](matrix-org/matrix-react-sdk#7742)). Fixes element-hq/element-web#20916.
* Tune aria-live regions around clocks/timers ([\#7735](matrix-org/matrix-react-sdk#7735)). Fixes element-hq/element-web#20967.
* Fix instances of decorated room avatar wrongly having their own tabIndex ([\#7730](matrix-org/matrix-react-sdk#7730)).
* Remove weird padding on stickers ([\#6271](matrix-org/matrix-react-sdk#6271)). Fixes element-hq/element-web#17787. Contributed by @SimonBrandner.
* Fix width issue of the composer overflow menu items ([\#7731](matrix-org/matrix-react-sdk#7731)). Fixes element-hq/element-web#20898.
* Properly handle persistent widgets when room is left ([\#7724](matrix-org/matrix-react-sdk#7724)). Fixes element-hq/element-web#20901.
* Null guard space hierarchy ([\#7729](matrix-org/matrix-react-sdk#7729)). Fixes matrix-org/element-web-rageshakes#10433.
* Fix add existing rooms button ([\#7728](matrix-org/matrix-react-sdk#7728)). Fixes element-hq/element-web#20924. Contributed by @SimonBrandner.
* Truncate long server names on login/register screen ([\#7702](matrix-org/matrix-react-sdk#7702)). Fixes element-hq/element-web#18452.
* Update PollCreateDialog-test to snapshot the html and not react tree ([\#7712](matrix-org/matrix-react-sdk#7712)).
* Fix creating polls outside of threads ([\#7711](matrix-org/matrix-react-sdk#7711)). Fixes element-hq/element-web#20882.
* Open native room when clicking notification from a virtual room ([\#7709](matrix-org/matrix-react-sdk#7709)).
* Fix relative link handling in Element Desktop ([\#7708](matrix-org/matrix-react-sdk#7708)). Fixes element-hq/element-web#20783.
* Reuse CopyableText component in all places it can be ([\#7701](matrix-org/matrix-react-sdk#7701)). Fixes element-hq/element-web#20855.
* Fit location into the width of the container ([\#7705](matrix-org/matrix-react-sdk#7705)). Fixes element-hq/element-web#20861.
* Make Spotlight Dialog roving reset more stable ([\#7698](matrix-org/matrix-react-sdk#7698)). Fixes element-hq/element-web#20826.
* Fix incorrect sizing of DecoratedRoomAvatar in RoomHeader ([\#7697](matrix-org/matrix-react-sdk#7697)). Fixes element-hq/element-web#20090.
* Use a more correct test for emoji ([\#7685](matrix-org/matrix-react-sdk#7685)). Fixes element-hq/element-web#20824. Contributed by @robintown.
* Fix vertical spacing in `compact` `<ContextMenu>` ([\#7684](matrix-org/matrix-react-sdk#7684)). Fixes element-hq/element-web#20801.
* Fix the sticker picker ([\#7692](matrix-org/matrix-react-sdk#7692)). Fixes element-hq/element-web#20797.
* Fix publishing address wrongly demanding the alias be available ([\#7690](matrix-org/matrix-react-sdk#7690)). Fixes element-hq/element-web#12013 and element-hq/element-web#20833.
* Prevent MemberAvatar soft-crashing when rendered with null member prop ([\#7691](matrix-org/matrix-react-sdk#7691)). Fixes element-hq/element-web#20714.
* Ensure UserInfo can be rendered without a room ([\#7687](matrix-org/matrix-react-sdk#7687)). Fixes element-hq/element-web#20830.
* Make polls fill column width in bubbles layout ([\#7661](matrix-org/matrix-react-sdk#7661)). Fixes element-hq/element-web#20712.
* Add a background to expanded nick name in IRC layout to make it readable. ([\#7652](matrix-org/matrix-react-sdk#7652)). Fixes element-hq/element-web#20757. Contributed by @UwUnyaa.
* Fix accessibility and consistency of MessageComposerButtons ([\#7679](matrix-org/matrix-react-sdk#7679)). Fixes element-hq/element-web#20814.
* Don't show shield next to deleted messages ([\#7671](matrix-org/matrix-react-sdk#7671)). Fixes element-hq/element-web#20475. Contributed by @SimonBrandner.
* Fix font size of spaces between big emoji ([\#7675](matrix-org/matrix-react-sdk#7675)). Contributed by @robintown.
* Fix shift-enter repeating last character ([\#7665](matrix-org/matrix-react-sdk#7665)). Fixes element-hq/element-web#17215. Contributed by @SimonBrandner.
* Remove Unpin option from maximised widget context menu ([\#7657](matrix-org/matrix-react-sdk#7657)).
* Fix new call event grouper implementation for encrypted rooms ([\#7654](matrix-org/matrix-react-sdk#7654)).
* Fix issue with tile error boundaries collapsing in bubbles layout ([\#7653](matrix-org/matrix-react-sdk#7653)).
* Fix emojis getting cropped in irc & bubble layouts by anti-zalgo ([\#7637](matrix-org/matrix-react-sdk#7637)). Fixes element-hq/element-web#20744.
* Fix space panel edge gradient not applying on load ([\#7644](matrix-org/matrix-react-sdk#7644)). Fixes element-hq/element-web#20756.
* Fix search results view for layouts other than Group/Modern ([\#7648](matrix-org/matrix-react-sdk#7648)). Fixes element-hq/element-web#20745.
su-ex added a commit to SchildiChat/element-web that referenced this issue Feb 15, 2022
* Support a config option to change the default device name ([\element-hq#20790](element-hq#20790)).
* Capitalize "Privacy" in UserMenu ([\element-hq#7738](matrix-org/matrix-react-sdk#7738)). Contributed by @aaronraimist.
* Move new search experience to a Beta ([\#7718](matrix-org/matrix-react-sdk#7718)). Fixes element-hq/element-meta#139 element-hq#20618 and element-hq#20339.
* Auto select "Other homeserver" when user press "Edit" in homeserver field ([\element-hq#7337](matrix-org/matrix-react-sdk#7337)). Fixes element-hq#20125. Contributed by @SimonBrandner.
* Add unread badges and avatar decorations to spotlight search ([\element-hq#7696](matrix-org/matrix-react-sdk#7696)). Fixes element-hq#20821.
* Enable location sharing ([\element-hq#7703](matrix-org/matrix-react-sdk#7703)).
* Simplify Composer buttons ([\element-hq#7678](matrix-org/matrix-react-sdk#7678)).
* Add a warning to the console to discourage attacks and encourage contributing ([\element-hq#7673](matrix-org/matrix-react-sdk#7673)). Fixes element-hq#2803. Contributed by @SimonBrandner.
* Don't show replaced calls in the timeline ([\element-hq#7452](matrix-org/matrix-react-sdk#7452)). Contributed by @SimonBrandner.
* Tweak `/addwidget` widget names ([\element-hq#7681](matrix-org/matrix-react-sdk#7681)).
* Chat export parameter customisation ([\element-hq#7647](matrix-org/matrix-react-sdk#7647)).
* Put call on hold when transfer dialog is opened ([\element-hq#7669](matrix-org/matrix-react-sdk#7669)).
* Share e2ee keys when using /invite SlashCommand ([\element-hq#7655](matrix-org/matrix-react-sdk#7655)). Fixes element-hq#20778 and element-hq#16982.
* Tweak spotlight roving behaviour to reset when changing query ([\#7656](matrix-org/matrix-react-sdk#7656)). Fixes element-hq#20537 element-hq#20612 and element-hq#20184.
* Look up tile server info in homeserver's .well-known area ([\element-hq#7623](matrix-org/matrix-react-sdk#7623)).
* Add grouper for hidden events ([\element-hq#7649](matrix-org/matrix-react-sdk#7649)).
* The keyboard shortcut is control (or cmd) shift h. ([\element-hq#7584](matrix-org/matrix-react-sdk#7584)). Contributed by @UwUnyaa.
* [Release] Fix cutout misalignment on some decorated room avatars ([\element-hq#7785](matrix-org/matrix-react-sdk#7785)).
* [Release] Fix add existing space not showing any spaces ([\element-hq#7756](matrix-org/matrix-react-sdk#7756)).
* [Release] Inhibit Room List keyboard pass-thru when the search beta is enabled ([\element-hq#7754](matrix-org/matrix-react-sdk#7754)).
* [Release] Fix space member list not opening ([\element-hq#7755](matrix-org/matrix-react-sdk#7755)).
* Null-guard ELS from null summaryMembers ([\element-hq#7744](matrix-org/matrix-react-sdk#7744)). Fixes element-hq#20807.
* Improve responsiveness of the layout switcher ([\element-hq#7736](matrix-org/matrix-react-sdk#7736)).
* Tweak timeline card layout ([\element-hq#7743](matrix-org/matrix-react-sdk#7743)). Fixes element-hq#20846.
* Ensure location bodies have a width in bubbles ([\element-hq#7742](matrix-org/matrix-react-sdk#7742)). Fixes element-hq#20916.
* Tune aria-live regions around clocks/timers ([\element-hq#7735](matrix-org/matrix-react-sdk#7735)). Fixes element-hq#20967.
* Fix instances of decorated room avatar wrongly having their own tabIndex ([\element-hq#7730](matrix-org/matrix-react-sdk#7730)).
* Remove weird padding on stickers ([\element-hq#6271](matrix-org/matrix-react-sdk#6271)). Fixes element-hq#17787. Contributed by @SimonBrandner.
* Fix width issue of the composer overflow menu items ([\element-hq#7731](matrix-org/matrix-react-sdk#7731)). Fixes element-hq#20898.
* Properly handle persistent widgets when room is left ([\element-hq#7724](matrix-org/matrix-react-sdk#7724)). Fixes element-hq#20901.
* Null guard space hierarchy ([\element-hq#7729](matrix-org/matrix-react-sdk#7729)). Fixes matrix-org/element-web-rageshakes#10433.
* Fix add existing rooms button ([\element-hq#7728](matrix-org/matrix-react-sdk#7728)). Fixes element-hq#20924. Contributed by @SimonBrandner.
* Truncate long server names on login/register screen ([\element-hq#7702](matrix-org/matrix-react-sdk#7702)). Fixes element-hq#18452.
* Update PollCreateDialog-test to snapshot the html and not react tree ([\element-hq#7712](matrix-org/matrix-react-sdk#7712)).
* Fix creating polls outside of threads ([\element-hq#7711](matrix-org/matrix-react-sdk#7711)). Fixes element-hq#20882.
* Open native room when clicking notification from a virtual room ([\element-hq#7709](matrix-org/matrix-react-sdk#7709)).
* Fix relative link handling in Element Desktop ([\element-hq#7708](matrix-org/matrix-react-sdk#7708)). Fixes element-hq#20783.
* Reuse CopyableText component in all places it can be ([\element-hq#7701](matrix-org/matrix-react-sdk#7701)). Fixes element-hq#20855.
* Fit location into the width of the container ([\element-hq#7705](matrix-org/matrix-react-sdk#7705)). Fixes element-hq#20861.
* Make Spotlight Dialog roving reset more stable ([\element-hq#7698](matrix-org/matrix-react-sdk#7698)). Fixes element-hq#20826.
* Fix incorrect sizing of DecoratedRoomAvatar in RoomHeader ([\element-hq#7697](matrix-org/matrix-react-sdk#7697)). Fixes element-hq#20090.
* Use a more correct test for emoji ([\element-hq#7685](matrix-org/matrix-react-sdk#7685)). Fixes element-hq#20824. Contributed by @robintown.
* Fix vertical spacing in `compact` `<ContextMenu>` ([\element-hq#7684](matrix-org/matrix-react-sdk#7684)). Fixes element-hq#20801.
* Fix the sticker picker ([\element-hq#7692](matrix-org/matrix-react-sdk#7692)). Fixes element-hq#20797.
* Fix publishing address wrongly demanding the alias be available ([\element-hq#7690](matrix-org/matrix-react-sdk#7690)). Fixes element-hq#12013 and element-hq#20833.
* Prevent MemberAvatar soft-crashing when rendered with null member prop ([\element-hq#7691](matrix-org/matrix-react-sdk#7691)). Fixes element-hq#20714.
* Ensure UserInfo can be rendered without a room ([\element-hq#7687](matrix-org/matrix-react-sdk#7687)). Fixes element-hq#20830.
* Make polls fill column width in bubbles layout ([\#7661](matrix-org/matrix-react-sdk#7661)). Fixes element-hq#20712.
* Add a background to expanded nick name in IRC layout to make it readable. ([\element-hq#7652](matrix-org/matrix-react-sdk#7652)). Fixes element-hq#20757. Contributed by @UwUnyaa.
* Fix accessibility and consistency of MessageComposerButtons ([\element-hq#7679](matrix-org/matrix-react-sdk#7679)). Fixes element-hq#20814.
* Don't show shield next to deleted messages ([\element-hq#7671](matrix-org/matrix-react-sdk#7671)). Fixes element-hq#20475. Contributed by @SimonBrandner.
* Fix font size of spaces between big emoji ([\element-hq#7675](matrix-org/matrix-react-sdk#7675)). Contributed by @robintown.
* Fix shift-enter repeating last character ([\element-hq#7665](matrix-org/matrix-react-sdk#7665)). Fixes element-hq#17215. Contributed by @SimonBrandner.
* Remove Unpin option from maximised widget context menu ([\element-hq#7657](matrix-org/matrix-react-sdk#7657)).
* Fix new call event grouper implementation for encrypted rooms ([\element-hq#7654](matrix-org/matrix-react-sdk#7654)).
* Fix issue with tile error boundaries collapsing in bubbles layout ([\element-hq#7653](matrix-org/matrix-react-sdk#7653)).
* Fix emojis getting cropped in irc & bubble layouts by anti-zalgo ([\element-hq#7637](matrix-org/matrix-react-sdk#7637)). Fixes element-hq#20744.
* Fix space panel edge gradient not applying on load ([\element-hq#7644](matrix-org/matrix-react-sdk#7644)). Fixes element-hq#20756.
* Fix search results view for layouts other than Group/Modern ([\element-hq#7648](matrix-org/matrix-react-sdk#7648)). Fixes element-hq#20745.
su-ex added a commit to SchildiChat/matrix-react-sdk that referenced this issue Feb 15, 2022
* Capitalize "Privacy" in UserMenu ([\matrix-org#7738](matrix-org#7738)). Contributed by @aaronraimist.
* Move new search experience to a Beta ([\matrix-org#7718](matrix-org#7718)). Fixes element-hq/element-meta#139 element-hq/element-web#20618 and element-hq/element-web#20339.
* Auto select "Other homeserver" when user press "Edit" in homeserver field ([\matrix-org#7337](matrix-org#7337)). Fixes element-hq/element-web#20125. Contributed by @SimonBrandner.
* Add unread badges and avatar decorations to spotlight search ([\matrix-org#7696](matrix-org#7696)). Fixes element-hq/element-web#20821.
* Enable location sharing ([\matrix-org#7703](matrix-org#7703)).
* Simplify Composer buttons ([\matrix-org#7678](matrix-org#7678)).
* Add a warning to the console to discourage attacks and encourage contributing ([\matrix-org#7673](matrix-org#7673)). Fixes element-hq/element-web#2803. Contributed by @SimonBrandner.
* Don't show replaced calls in the timeline ([\matrix-org#7452](matrix-org#7452)). Contributed by @SimonBrandner.
* Tweak `/addwidget` widget names ([\matrix-org#7681](matrix-org#7681)).
* Chat export parameter customisation ([\matrix-org#7647](matrix-org#7647)).
* Put call on hold when transfer dialog is opened ([\matrix-org#7669](matrix-org#7669)).
* Share e2ee keys when using /invite SlashCommand ([\matrix-org#7655](matrix-org#7655)). Fixes element-hq/element-web#20778 and element-hq/element-web#16982.
* Tweak spotlight roving behaviour to reset when changing query ([\matrix-org#7656](matrix-org#7656)). Fixes element-hq/element-web#20537 element-hq/element-web#20612 and element-hq/element-web#20184.
* Look up tile server info in homeserver's .well-known area ([\matrix-org#7623](matrix-org#7623)).
* Add grouper for hidden events ([\matrix-org#7649](matrix-org#7649)).
* The keyboard shortcut is control (or cmd) shift h. ([\matrix-org#7584](matrix-org#7584)). Contributed by @UwUnyaa.
* [Release] Fix cutout misalignment on some decorated room avatars ([\matrix-org#7785](matrix-org#7785)).
* [Release] Fix add existing space not showing any spaces ([\matrix-org#7756](matrix-org#7756)).
* [Release] Inhibit Room List keyboard pass-thru when the search beta is enabled ([\matrix-org#7754](matrix-org#7754)).
* [Release] Fix space member list not opening ([\matrix-org#7755](matrix-org#7755)).
* Null-guard ELS from null summaryMembers ([\matrix-org#7744](matrix-org#7744)). Fixes element-hq/element-web#20807.
* Improve responsiveness of the layout switcher ([\matrix-org#7736](matrix-org#7736)).
* Tweak timeline card layout ([\matrix-org#7743](matrix-org#7743)). Fixes element-hq/element-web#20846.
* Ensure location bodies have a width in bubbles ([\matrix-org#7742](matrix-org#7742)). Fixes element-hq/element-web#20916.
* Tune aria-live regions around clocks/timers ([\matrix-org#7735](matrix-org#7735)). Fixes element-hq/element-web#20967.
* Fix instances of decorated room avatar wrongly having their own tabIndex ([\matrix-org#7730](matrix-org#7730)).
* Remove weird padding on stickers ([\matrix-org#6271](matrix-org#6271)). Fixes element-hq/element-web#17787. Contributed by @SimonBrandner.
* Fix width issue of the composer overflow menu items ([\matrix-org#7731](matrix-org#7731)). Fixes element-hq/element-web#20898.
* Properly handle persistent widgets when room is left ([\matrix-org#7724](matrix-org#7724)). Fixes element-hq/element-web#20901.
* Null guard space hierarchy ([\matrix-org#7729](matrix-org#7729)). Fixes matrix-org/element-web-rageshakes#10433.
* Fix add existing rooms button ([\matrix-org#7728](matrix-org#7728)). Fixes element-hq/element-web#20924. Contributed by @SimonBrandner.
* Truncate long server names on login/register screen ([\matrix-org#7702](matrix-org#7702)). Fixes element-hq/element-web#18452.
* Update PollCreateDialog-test to snapshot the html and not react tree ([\matrix-org#7712](matrix-org#7712)).
* Fix creating polls outside of threads ([\matrix-org#7711](matrix-org#7711)). Fixes element-hq/element-web#20882.
* Open native room when clicking notification from a virtual room ([\matrix-org#7709](matrix-org#7709)).
* Fix relative link handling in Element Desktop ([\matrix-org#7708](matrix-org#7708)). Fixes element-hq/element-web#20783.
* Reuse CopyableText component in all places it can be ([\matrix-org#7701](matrix-org#7701)). Fixes element-hq/element-web#20855.
* Fit location into the width of the container ([\matrix-org#7705](matrix-org#7705)). Fixes element-hq/element-web#20861.
* Make Spotlight Dialog roving reset more stable ([\matrix-org#7698](matrix-org#7698)). Fixes element-hq/element-web#20826.
* Fix incorrect sizing of DecoratedRoomAvatar in RoomHeader ([\matrix-org#7697](matrix-org#7697)). Fixes element-hq/element-web#20090.
* Use a more correct test for emoji ([\matrix-org#7685](matrix-org#7685)). Fixes element-hq/element-web#20824. Contributed by @robintown.
* Fix vertical spacing in `compact` `<ContextMenu>` ([\matrix-org#7684](matrix-org#7684)). Fixes element-hq/element-web#20801.
* Fix the sticker picker ([\matrix-org#7692](matrix-org#7692)). Fixes element-hq/element-web#20797.
* Fix publishing address wrongly demanding the alias be available ([\matrix-org#7690](matrix-org#7690)). Fixes element-hq/element-web#12013 and element-hq/element-web#20833.
* Prevent MemberAvatar soft-crashing when rendered with null member prop ([\matrix-org#7691](matrix-org#7691)). Fixes element-hq/element-web#20714.
* Ensure UserInfo can be rendered without a room ([\matrix-org#7687](matrix-org#7687)). Fixes element-hq/element-web#20830.
* Make polls fill column width in bubbles layout ([\matrix-org#7661](matrix-org#7661)). Fixes element-hq/element-web#20712.
* Add a background to expanded nick name in IRC layout to make it readable. ([\matrix-org#7652](matrix-org#7652)). Fixes element-hq/element-web#20757. Contributed by @UwUnyaa.
* Fix accessibility and consistency of MessageComposerButtons ([\matrix-org#7679](matrix-org#7679)). Fixes element-hq/element-web#20814.
* Don't show shield next to deleted messages ([\matrix-org#7671](matrix-org#7671)). Fixes element-hq/element-web#20475. Contributed by @SimonBrandner.
* Fix font size of spaces between big emoji ([\matrix-org#7675](matrix-org#7675)). Contributed by @robintown.
* Fix shift-enter repeating last character ([\matrix-org#7665](matrix-org#7665)). Fixes element-hq/element-web#17215. Contributed by @SimonBrandner.
* Remove Unpin option from maximised widget context menu ([\matrix-org#7657](matrix-org#7657)).
* Fix new call event grouper implementation for encrypted rooms ([\matrix-org#7654](matrix-org#7654)).
* Fix issue with tile error boundaries collapsing in bubbles layout ([\matrix-org#7653](matrix-org#7653)).
* Fix emojis getting cropped in irc & bubble layouts by anti-zalgo ([\matrix-org#7637](matrix-org#7637)). Fixes element-hq/element-web#20744.
* Fix space panel edge gradient not applying on load ([\matrix-org#7644](matrix-org#7644)). Fixes element-hq/element-web#20756.
* Fix search results view for layouts other than Group/Modern ([\matrix-org#7648](matrix-org#7648)). Fixes element-hq/element-web#20745.
@mcg-matrix
Copy link

The unexpected behaviour is gone in version 1.10.3 of Element-Desktop. Shift+Enter inserts a linebreak as expected, with or without preference "Use Ctrl + Enter to send a message" turned on.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants