瀏覽代碼

fix(status_list): Use correct keys for keyboard navigation (#4487)

master
Sorin Davidoi 6 年之前
committed by Eugen Rochko
父節點
當前提交
ac53736814
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      app/javascript/mastodon/components/status_list.js

+ 1
- 1
app/javascript/mastodon/components/status_list.js 查看文件

@@ -105,7 +105,7 @@ export default class StatusList extends ImmutablePureComponent {
}

handleKeyDown = (e) => {
if (['PageDown', 'PageUp', 'End', 'Home'].includes(e.key)) {
if (['PageDown', 'PageUp'].includes(e.key) || (e.ctrlKey && ['End', 'Home'].includes(e.key))) {
const article = (() => {
switch (e.key) {
case 'PageDown':


Loading…
取消
儲存