Show hotkeys as chips, for easier reading
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React, { useCallback, useState } from 'react'
|
import React, { useCallback, useState } from 'react'
|
||||||
import ReactDOM from 'react-dom'
|
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 { getApplicationKeyMap, GlobalHotKeys } from 'react-hotkeys'
|
||||||
import TableContainer from '@material-ui/core/TableContainer'
|
import TableContainer from '@material-ui/core/TableContainer'
|
||||||
import Paper from '@material-ui/core/Paper'
|
import Paper from '@material-ui/core/Paper'
|
||||||
@@ -38,7 +38,11 @@ const HelpTable = (props) => {
|
|||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell align="left">
|
<TableCell align="left">
|
||||||
{sequences.map(({ sequence }) => (
|
{sequences.map(({ sequence }) => (
|
||||||
<span key={sequence}>{sequence}</span>
|
<Chip
|
||||||
|
label={<kbd key={sequence}>{sequence}</kbd>}
|
||||||
|
size="small"
|
||||||
|
variant={'outlined'}
|
||||||
|
/>
|
||||||
))}
|
))}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|||||||
Reference in New Issue
Block a user