File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,20 @@ export default function KeyBind({
8888}
8989
9090export function RenderKey ( { data } : { data : ReturnType < typeof parseEmacsKey > [ number ] } ) {
91+ let keyShow = data . key ;
92+ if ( data . key === "arrowup" ) {
93+ keyShow = "↑" ;
94+ } else if ( data . key === "arrowdown" ) {
95+ keyShow = "↓" ;
96+ } else if ( data . key === "arrowleft" ) {
97+ keyShow = "←" ;
98+ } else if ( data . key === "arrowright" ) {
99+ keyShow = "→" ;
100+ }
91101 return (
92- < span className = "not-first:before:content-[',_'] flex gap-1" >
102+ < span className = "not-first:before:content-[',_'] flex gap-1 font-bold " >
93103 < Modifiers modifiers = { data } />
94- { data . key . startsWith ( "<" ) ? < MouseButton key_ = { data . key } /> : data . key }
104+ { data . key . startsWith ( "<" ) ? < MouseButton key_ = { data . key } /> : keyShow }
95105 </ span >
96106 ) ;
97107}
@@ -153,7 +163,7 @@ export function Modifiers({
153163 }
154164 }
155165 return mods . map ( ( modifier , index ) => (
156- < span className = "bg-card rounded-sm px-1" key = { index } >
166+ < span className = "bg-card text-foreground rounded-sm px-1 font-semibold " key = { index } >
157167 { modifier }
158168 </ span >
159169 ) ) ;
You can’t perform that action at this time.
0 commit comments