* add middle-click to remove files from context.
Previously when you wanted to remove files which were previously added to the chat context, you had to click the little "x" icon one by one. When you had several files to remove, this got tedious and difficult, especially since the file box varies in width, so the "x" is not in the same space.
This change makes this operation easier by allowing you to middle-click anywhere on the file box to remove it.
* fix: mouse actions when clicked outside of the tag label
---------
Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
This change makes it so the user can select the key combination to send the message. Users may configure any combination of ctrl, alt, or shift (or the mac equivalents) plus enter. If any are configured, that combination plus enter will send the message, and enter by itself will insert a newline. If none are configured, enter by itself and any of the modifiers plus enter inserts a newline. This means the previous behavior of shift+enter to insert a newline is preserved.
Previously when a message wass deleted, the Conversation object was modified in memory but not correctly updated in the master list of conversations (ConversationsState.conversations). The effect of this was that when you sent a new message, the deleted messages were resurrected.
Previously when text was enclosed in backticks, that text wouldn't wrap, and would instead overflow beyond the viewport. In addition, there is no horizontal scroll bar, so the text is completely inaccessible. And to make it even worse, because of this, the virtual viewport was extended, causing other non-backtick text to also go out of view.
This fixes the issue by overriding the style to enable wrapping.
Previously there was an issue where if a code block contained nested triple-backticks, it would end the code block, causing the message window to become horribly mangled.
This fixes the issue by only considering a triple-backtick to be an end to the code block if the triple-backticks are at the same indention level which started the code block.