@@ -54,6 +54,7 @@ import {
5454 unfreezePseudoStates ,
5555} from "../../utils/freeze-pseudo-states.js" ;
5656import { Tooltip } from "../tooltip.jsx" ;
57+ import { Kbd } from "../kbd.jsx" ;
5758import {
5859 getButtonSpacingClass ,
5960 getHitboxConstraintClass ,
@@ -1553,7 +1554,7 @@ export const Toolbar: Component<ToolbarProps> = (props) => {
15531554 visible = { isSelectTooltipVisible ( ) && isTooltipAllowed ( ) }
15541555 position = { tooltipPosition ( ) }
15551556 >
1556- Select element ( { formatShortcut ( "C" ) } )
1557+ Select element < Kbd > { formatShortcut ( "C" ) } </ Kbd >
15571558 </ Tooltip >
15581559 </ >
15591560 }
@@ -1772,28 +1773,20 @@ export const Toolbar: Component<ToolbarProps> = (props) => {
17721773 < Show when = { selectionHintIndex ( ) === 0 } >
17731774 < span class = "flex items-center gap-1 animate-[hint-flip-in_var(--transition-normal)_ease-out]" >
17741775 Click or
1775- < span class = "inline-flex items-center justify-center px-[3px] h-3.5 rounded-sm [border-width:0.5px] border-solid border-[#B3B3B3] text-black/70 text-[10px] font-medium leading-none" >
1776- ↵
1777- </ span >
1776+ < Kbd > ↵</ Kbd >
17781777 to capture
17791778 </ span >
17801779 </ Show >
17811780 < Show when = { selectionHintIndex ( ) === 1 } >
17821781 < span class = "flex items-center gap-1 animate-[hint-flip-in_var(--transition-normal)_ease-out]" >
1783- < span class = "inline-flex items-center justify-center px-[3px] h-3.5 rounded-sm [border-width:0.5px] border-solid border-[#B3B3B3] text-black/70 text-[10px] font-medium leading-none" >
1784- ↑
1785- </ span >
1786- < span class = "inline-flex items-center justify-center px-[3px] h-3.5 rounded-sm [border-width:0.5px] border-solid border-[#B3B3B3] text-black/70 text-[10px] font-medium leading-none" >
1787- ↓
1788- </ span >
1782+ < Kbd > ↑</ Kbd >
1783+ < Kbd > ↓</ Kbd >
17891784 to fine-tune target
17901785 </ span >
17911786 </ Show >
17921787 < Show when = { selectionHintIndex ( ) === 2 } >
17931788 < span class = "flex items-center gap-1 animate-[hint-flip-in_var(--transition-normal)_ease-out]" >
1794- < span class = "inline-flex items-center justify-center px-[3px] h-3.5 rounded-sm [border-width:0.5px] border-solid border-[#B3B3B3] text-black/70 text-[10px] font-medium leading-none" >
1795- esc
1796- </ span >
1789+ < Kbd > esc</ Kbd >
17971790 to cancel
17981791 </ span >
17991792 </ Show >
0 commit comments