mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Include Ctrl+Enter as one the shortcuts that insert line break instead of submitting the message
This commit is contained in:
@@ -210,7 +210,7 @@
|
||||
updateMessageFieldSize: function (event) {
|
||||
var keyCode = event.which || event.keyCode;
|
||||
|
||||
if (keyCode === 13 && !event.altKey && !event.shiftKey) {
|
||||
if (keyCode === 13 && !event.altKey && !event.shiftKey && !event.ctrlKey) {
|
||||
// enter pressed - submit the form now
|
||||
event.preventDefault();
|
||||
return this.$('.bottom-bar form').submit();
|
||||
|
||||
Reference in New Issue
Block a user