本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
abunchtell
/
mastodon
關注
1
收藏
0
複製
0
程式碼
問題
0
活動
瀏覽代碼
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
父節點
7085b21f70
當前提交
adb06baef6
共有
1 個檔案被更改
,包括
1 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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 />
Write
Preview
Loading…
取消
儲存