File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import SizeIcon from "../icons/size.svg";
4242import QualityIcon from "../icons/hd.svg" ;
4343import StyleIcon from "../icons/palette.svg" ;
4444import PluginIcon from "../icons/plugin.svg" ;
45+ import ShortcutkeyIcon from "../icons/shortcutkey.svg" ;
4546
4647import {
4748 ChatMessage ,
@@ -437,6 +438,7 @@ export function ChatActions(props: {
437438 showPromptHints : ( ) => void ;
438439 hitBottom : boolean ;
439440 uploading : boolean ;
441+ setShowShortcutKeyModal : ( ) => void ;
440442} ) {
441443 const config = useAppConfig ( ) ;
442444 const navigate = useNavigate ( ) ;
@@ -755,6 +757,12 @@ export function ChatActions(props: {
755757 } }
756758 />
757759 ) }
760+
761+ < ChatAction
762+ onClick = { ( ) => props . setShowShortcutKeyModal ( true ) }
763+ text = { Locale . Chat . ShortcutKey . Title }
764+ icon = { < ShortcutkeyIcon /> }
765+ />
758766 </ div >
759767 ) ;
760768}
@@ -1814,6 +1822,7 @@ function _Chat() {
18141822 setUserInput ( "/" ) ;
18151823 onSearch ( "" ) ;
18161824 } }
1825+ setShowShortcutKeyModal = { setShowShortcutKeyModal }
18171826 />
18181827 < label
18191828 className = { `${ styles [ "chat-input-panel-inner" ] } ${
You can’t perform that action at this time.
0 commit comments