diff --git a/main.lua b/main.lua index 9fdc73e..b3f97d7 100644 --- a/main.lua +++ b/main.lua @@ -457,7 +457,7 @@ function IrcChatView:promptSendMessage() dialog = InputDialog:new{ title = _("Send message"), input = "", - allow_newline = true, -- allow multiline input + -- Keep single-line input semantics on Enter, but expand the box use_available_height = true, -- expand input to available height condensed = true, -- reduce extra padding to maximize text area buttons = { @@ -465,6 +465,7 @@ function IrcChatView:promptSendMessage() { text = _("Send"), is_default = true, + is_enter_default = true, callback = function() local txt = dialog:getInputText() -- Update buffer/UI before closing dialog to ensure immediate repaint