1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 18:32:34 +01:00

improve key list

This commit is contained in:
Mikael Finstad 2022-02-20 18:35:29 +08:00
parent 14ae45780b
commit 1a59be3e75
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -97,7 +97,7 @@ const CreateBinding = memo(({
);
});
const rowStyle = { display: 'flex', alignItems: 'flex-start', margin: '6px 0' };
const rowStyle = { display: 'flex', alignItems: 'center', margin: '6px 0' };
const KeyboardShortcuts = memo(({
keyBindings, setKeyBindings, currentCutSeg,
@ -434,6 +434,8 @@ const KeyboardShortcuts = memo(({
<IconButton title={t('Remove key binding')} appearance="minimal" intent="danger" icon={DeleteIcon} onClick={() => onDeleteBindingClick({ action, keys })} />
</div>
))}
{bindingsForThisAction.length === 0 && <Text color="muted">{t('No binding')}</Text>}
</div>
<IconButton title={t('Bind new key to action')} appearance="minimal" intent="success" icon={AddIcon} onClick={() => onAddBindingClick(action)} />