File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed
Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 9191}
9292
9393.key-group {
94+ display : inline-flex ;
95+ align-items : center ;
96+
9497 & __key {
9598 padding : 0 4px ;
9699 height : 16px ;
Original file line number Diff line number Diff line change @@ -462,15 +462,21 @@ Hotkey.Tooltip = inject("store")(
462462
463463 if ( enabled ) {
464464 shortcut . split ( "," ) . forEach ( ( combination : string ) => {
465- const keys = combination . split ( "+" ) . map ( ( key : string ) =>
466- createElement (
467- "kbd" ,
468- {
469- className : cn ( "hotkey" ) . elem ( "key" ) . toClassName ( ) ,
470- } ,
471- key ,
472- ) ,
473- ) ;
465+ const keyParts = combination . split ( "+" ) ;
466+ const keys : JSX . Element [ ] = [ ] ;
467+
468+ keyParts . forEach ( ( key : string , i : number ) => {
469+ keys . push (
470+ createElement (
471+ "kbd" ,
472+ {
473+ className : cn ( "key-group" ) . elem ( "key" ) . toClassName ( ) ,
474+ key : `key-${ i } ` ,
475+ } ,
476+ key ,
477+ ) ,
478+ ) ;
479+ } ) ;
474480
475481 hotkeys . push (
476482 createElement (
You can’t perform that action at this time.
0 commit comments