Show hotkeys as chips, for easier reading

This commit is contained in:
Deluan 2021-10-25 10:52:43 -04:00
parent 8d6b5f9d02
commit ed1ca65ad5
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import React, { useCallback, useState } from 'react'
import ReactDOM from 'react-dom'
import { Dialog } from '@material-ui/core'
import { Chip, Dialog } from '@material-ui/core'
import { getApplicationKeyMap, GlobalHotKeys } from 'react-hotkeys'
import TableContainer from '@material-ui/core/TableContainer'
import Paper from '@material-ui/core/Paper'
@ -38,7 +38,11 @@ const HelpTable = (props) => {
</TableCell>
<TableCell align="left">
{sequences.map(({ sequence }) => (
<span key={sequence}>{sequence}</span>
<Chip
label={<kbd key={sequence}>{sequence}</kbd>}
size="small"
variant={'outlined'}
/>
))}
</TableCell>
</TableRow>