소스 검색

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



불러오는 중...
취소
저장