(feat): add hotkeys
This commit is contained in:
parent
915568f739
commit
85633a1c81
27 changed files with 1014 additions and 33 deletions
17
packages/chat/src/hotkeys.ts
Normal file
17
packages/chat/src/hotkeys.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { defineHotkey } from "@tensamin/hotkeys";
|
||||
|
||||
export const editLastMessageHotkey = defineHotkey({
|
||||
id: "chat.edit-last-message",
|
||||
name: "Edit last message",
|
||||
description: "Edit your most recent message when the composer is empty.",
|
||||
category: "Chat",
|
||||
defaultBinding: "ArrowUp",
|
||||
});
|
||||
|
||||
export const cancelMessageEditHotkey = defineHotkey({
|
||||
id: "chat.cancel-message-edit",
|
||||
name: "Cancel message edit",
|
||||
description: "Close the message editor without saving changes.",
|
||||
category: "Chat",
|
||||
defaultBinding: "Escape",
|
||||
});
|
||||
Loading…
Reference in a new issue