feat: add a quick edit workflow using the up arrow key
neochat now supports a quick edit shortcut, which helps to edit the last message from the user in a room. Apply 1 suggestion(s) to 1 file(s) remove comment
This commit is contained in:
@@ -28,6 +28,7 @@ ToolBar {
|
||||
signal inputFieldForceActiveFocusTriggered()
|
||||
signal messageSent()
|
||||
signal pasteImageTriggered()
|
||||
signal editLastUserMessage()
|
||||
|
||||
property alias isCompleting: completionMenu.visible
|
||||
|
||||
@@ -141,6 +142,8 @@ ToolBar {
|
||||
switchRoomUp();
|
||||
} else if (event.key === Qt.Key_V && event.modifiers & Qt.ControlModifier) {
|
||||
chatBar.pasteImage();
|
||||
} else if (event.key === Qt.Key_Up && !(event.modifiers & Qt.ControlModifier)) {
|
||||
editLastUserMessage();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user