mirror of
https://github.com/mue/mue.git
synced 2026-07-27 02:31:06 +02:00
feat: new keybinds, language support etc
This commit is contained in:
@@ -55,20 +55,11 @@ export default class Maximise extends PureComponent {
|
||||
}
|
||||
|
||||
render() {
|
||||
const maximise = (
|
||||
return (
|
||||
<Tooltip title={window.language.modals.main.settings.sections.background.buttons.view}>
|
||||
<Fullscreen onClick={this.maximise} className='topicons' />
|
||||
{window.keybinds.maximiseBackground && window.keybinds.maximiseBackground !== '' ? <Hotkeys keyName={window.keybinds.maximiseBackground} onKeyDown={this.maximise} /> : null}
|
||||
</Tooltip>
|
||||
);
|
||||
|
||||
if (window.keybinds.maximiseBackground && window.keybinds.maximiseBackground !== '') {
|
||||
return (
|
||||
<Hotkeys keyName={window.keybinds.maximiseBackground} onKeyDown={() => this.maximise()}>
|
||||
{maximise}
|
||||
</Hotkeys>
|
||||
);
|
||||
} else {
|
||||
return maximise;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user