Handle global hotkeys even when no element has focus (#8998)

This fixes hotkeys not working when pressing the column
“back” button, for instance.
lolsob-rspec
ThibG 2018-10-17 16:56:16 +02:00 committed by Eugen Rochko
parent 46e3c63bb9
commit 6e5f9ee743
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ class UI extends React.PureComponent {
};
return (
<HotKeys keyMap={keyMap} handlers={handlers} ref={this.setHotkeysRef}>
<HotKeys keyMap={keyMap} handlers={handlers} ref={this.setHotkeysRef} attach={window} focused>
<div className={classNames('ui', { 'is-composing': isComposing })} ref={this.setRef} style={{ pointerEvents: dropdownMenuIsOpen ? 'none' : null }}>
<TabsBar />