Преглед на файлове

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

This fixes hotkeys not working when pressing the column
“back” button, for instance.
master
ThibG преди 5 години
committed by Eugen Rochko
родител
ревизия
adb06baef6
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      app/javascript/mastodon/features/ui/index.js

+ 1
- 1
app/javascript/mastodon/features/ui/index.js Целия файл

@@ -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 />



Зареждане…
Отказ
Запис