Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

configurable Enter behaviour for ComposerInput #1966

Closed
wants to merge 3 commits into from

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jun 14, 2018

Fixes element-hq/element-web#5006

Blocked on #1890

not yet i18n'd
allows users to choose Enter functionality

enterSends (default) !enterSends
newline newline
Ctrl/⌘ send send
send newline

@@ -99,6 +99,11 @@ export const SETTINGS = {
displayName: _td('Disable Emoji suggestions while typing'),
default: false,
},
"MessageComposerInput.enterSends": {
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
displayName: _td('Use Enter to send message'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This label doesn't explain what happens if this were to be unchecked (false).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got any better suggestions with wording? :(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I don't think it can be mapped to a boolean flag. This seems to fall squarely into keybinding territory.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well the intent is to only offer a toggle of:
image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which is what other chat apps give you

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd still personally vote for a keybinding UI of some kind given the wide range things that also need keybindings.

Although if you're dead set on the boolean: Maybe have the wording be "Use Enter to send messages, otherwise CTRL+Enter"?

@myii
Copy link

myii commented Jan 13, 2019

@t3chguy #1890 was merged on 16 Jul 2018 -- is this still blocked in some way? Would love to see this feature incorporated.

@t3chguy
Copy link
Member Author

t3chguy commented Jan 13, 2019

@myii its currently unknown whether this is the desired approach versus a

I'd still personally vote for a keybinding UI of some kind given the wide range things that also need keybindings.

@jryans
Copy link
Collaborator

jryans commented Jul 31, 2019

Thanks for making this contribution a while back. Since the code base has changed since this was opened, it no longer applies cleanly, and I don't think there's a need to keep it open in this state, as we can always find the code here again if needed. If you are still interested in pursuing this feature, please discuss with us in #riot-dev:matrix.org to find a good approach forward.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants