Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard shortcuts is messed up #4962

Closed
2 of 3 tasks
kidonng opened this issue Oct 21, 2021 · 7 comments
Closed
2 of 3 tasks

Keyboard shortcuts is messed up #4962

kidonng opened this issue Oct 21, 2021 · 7 comments
Labels

Comments

@kidonng
Copy link
Member

kidonng commented Oct 21, 2021

Please ensure:

  • The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.

Include in this issue:

  • Screenshots/video/gif demonstrating the bug, if it’s visual
  • Console errors, if any

Description

Press Shift + / (?), get:

image

Example URL

Here

Browser(s) used

Chrome

@kidonng kidonng added the bug label Oct 21, 2021
@cheap-glitch
Copy link
Member

The shortcut doesn't even work for me (maybe because I'm on an Azerty keyboard?)

@kidonng
Copy link
Member Author

kidonng commented Oct 21, 2021

// https://github.githubassets.com/assets/app/assets/modules/github/behaviors/keyboard-shortcuts.ts
document.addEventListener('keydown', (event: Event) => {
  if (!(event instanceof KeyboardEvent)) return
  if (!isShortcutAllowed(event)) return

  if (event.target instanceof Node && isFormField(event.target)) return
  // `eventToHotkeyString`: from `@github/hotkey` (https://github.com/github/hotkey)
  if (eventToHotkeyString(event) !== 'Shift+?') return
  showKeyboardShortcuts()
})

@fregante
Copy link
Member

@cheap-glitch The shortcut is "?", not "shift+/". Try that on your keyboard

@kidonng
Copy link
Member Author

kidonng commented Oct 27, 2021

Can't replicate now, closing...

@kidonng kidonng closed this as completed Oct 27, 2021
@cheap-glitch
Copy link
Member

@cheap-glitch The shortcut is "?", not "shift+/". Try that on your keyboard

On Azerty keyboards the "?" is above "," so afaik there's no way to get it without Shift.
I think https://togithub.com/github/hotkey/issues/54 is the culprit.

@fregante
Copy link
Member

Same here. I saw it before but now it's fixed. They must have made some temporary change

@fregante
Copy link
Member

On Azerty keyboards the "?" is above "," so afaik there's no way to get it without Shift.

Right, so press shift+,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants