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

feat: add setting to break line on Enter #2929

Closed
wants to merge 2 commits into from

Conversation

KeeJef
Copy link
Collaborator

@KeeJef KeeJef commented Sep 20, 2023

Implements #1486

Comment on lines 86 to 97
const initialSetting = window.getSettingValue(SettingsKey.settingsEnterKeyFunction) || true;

const items = [
{
label: window.i18n('enterSendNewMessageDescription'),
value: 'enterSend',
},
{
label: window.i18n('enterNewLineDescription'),
value: 'enterNewLine',
},
];
Copy link
Collaborator

@Bilb Bilb Sep 26, 2023

Choose a reason for hiding this comment

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

We would prefer to use a boolean for that setting instead of a string.
Would we ever need a third state for this setting? If yes, a string makes sense, but if not, I'd prefer a boolean.
Having a boolean means we can easily store in in redux, and defaults state are easier to manage

Refactor setting to use boolean which is stored in redux
@KeeJef KeeJef deleted the branch oxen-io:clearnet October 11, 2023 04:35
@KeeJef KeeJef closed this Oct 11, 2023
@KeeJef KeeJef deleted the clearnet branch October 11, 2023 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants