fix: Send message with "enter" also do new line (#5961)
* fix: Send message with "enter" also do new line * chore: Review fixes * chore: Naming fixes * chore: Minor fixes * chore: Fix line break issue when cmd plus enter enabled
This commit is contained in:
@@ -14,6 +14,10 @@ export const hasPressedCommand = e => {
|
||||
return e.metaKey;
|
||||
};
|
||||
|
||||
export const hasPressedEnterAndNotCmdOrShift = e => {
|
||||
return isEnter(e) && !hasPressedCommand(e) && !hasPressedShift(e);
|
||||
};
|
||||
|
||||
export const hasPressedCommandAndEnter = e => {
|
||||
return e.metaKey && e.keyCode === 13;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user