mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-11 04:42:17 +03:00
Show hotkeys as chips, for easier reading
This commit is contained in:
parent
8d6b5f9d02
commit
ed1ca65ad5
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user