MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / ShortcutTitle

Function ShortcutTitle

web/pgadmin/static/js/components/ShortcutTitle.jsx:77–90  ·  view source on GitHub ↗
({title, shortcut, accesskey})

Source from the content-addressed store, hash-verified

75
76/* The tooltip content to show shortcut details */
77export default function ShortcutTitle({title, shortcut, accesskey}) {
78
79 let keys = shortcutToString(shortcut, accesskey, true);
80 return (
81 (<Root>
82 <div className='ShortcutTitle-title'>{title}</div>
83 <div className='ShortcutTitle-shortcut'>
84 {keys.map((key, idx)=>{
85 return <div key={idx} className='ShortcutTitle-key'>{key}</div>;
86 })}
87 </div>
88 </Root>)
89 );
90}
91
92ShortcutTitle.propTypes = {
93 title: PropTypes.string,

Callers

nothing calls this directly

Calls 1

shortcutToStringFunction · 0.85

Tested by

no test coverage detected