File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import SizeIcon from "../icons/size.svg";
42
42
import QualityIcon from "../icons/hd.svg" ;
43
43
import StyleIcon from "../icons/palette.svg" ;
44
44
import PluginIcon from "../icons/plugin.svg" ;
45
+ import ShortcutkeyIcon from "../icons/shortcutkey.svg" ;
45
46
46
47
import {
47
48
ChatMessage ,
@@ -437,6 +438,7 @@ export function ChatActions(props: {
437
438
showPromptHints : ( ) => void ;
438
439
hitBottom : boolean ;
439
440
uploading : boolean ;
441
+ setShowShortcutKeyModal : ( ) => void ;
440
442
} ) {
441
443
const config = useAppConfig ( ) ;
442
444
const navigate = useNavigate ( ) ;
@@ -755,6 +757,12 @@ export function ChatActions(props: {
755
757
} }
756
758
/>
757
759
) }
760
+
761
+ < ChatAction
762
+ onClick = { ( ) => props . setShowShortcutKeyModal ( true ) }
763
+ text = { Locale . Chat . ShortcutKey . Title }
764
+ icon = { < ShortcutkeyIcon /> }
765
+ />
758
766
</ div >
759
767
) ;
760
768
}
@@ -1814,6 +1822,7 @@ function _Chat() {
1814
1822
setUserInput ( "/" ) ;
1815
1823
onSearch ( "" ) ;
1816
1824
} }
1825
+ setShowShortcutKeyModal = { setShowShortcutKeyModal }
1817
1826
/>
1818
1827
< label
1819
1828
className = { `${ styles [ "chat-input-panel-inner" ] } ${
You can’t perform that action at this time.
0 commit comments