Skip to content

Opens a new chrome tab on ] #2607

Closed
Closed

Description

@Tusky

Description

With hungarian layout pressing the ] character is done with altgr+G which the Github application catches as ctrl+alt+g which opens a chrome tab.

Version

GitHub Desktop version: 0.8.0

OS version: Microsoft Windows [Version 10.0.15063]

Steps to Reproduce

  1. Press alt gr+G

Expected behavior: It does not open a chrome tab.

Actual behavior: Opens a chrome tab.

Reproduces how often: Every time :)

Activity

  1. shiftkey commented on Sep 4, 2017

    @shiftkey
    Member

    @Tusky thanks for the details and the repro steps. I was able to recreate this on Windows 10 using the onscreen keyboard set to Hungarian.

    Opens a chrome tab.

    For a moment I was worried about what this was opening, but it's opening the current repository on GitHub as it currently maps to Ctrl + Alt + G.

    It looks like this accelerator is declared correctly:

    accelerator: 'CmdOrCtrl+Alt+G',

    The documentation suggests that Alt and AltGr can be declared as separate menu accelerators, but perhaps the runtime invoking the incorrect shortcut.

    I suspect this is something that needs to be fixed in Electron, unless it's already been addressed in the 1.7.x series (we're on 1.6.x currently).

  2. Tusky commented on Sep 4, 2017

    @Tusky
    Author

    Yes, I understand that must be something underlying issue, but it's really annyoing I have to close the tab it opens (not to mention it switches focus) because we use [issue id] - description syntax. I was looking for a hotkey changing option because that would have been the simplest solution to just disable that hotkey since I do need that especially like this, but currently there is no option to change hotkeys as far as I know within the github client.

  3. shiftkey commented on Sep 4, 2017

    @shiftkey
    Member

    @Tusky I wasn't able to reproduce this on the 1.7.x PR I'm working on in #2582 (it's inserting ] into the commit details as expected).

  4. Tusky commented on Sep 4, 2017

    @Tusky
    Author

    yes it is inserting ] the character but opens the chrome tab also. But I'm glad if that is fixed on the 1.7.x ! Can't wait for you to have that deployed :)

  5. added
    bug
    on Sep 4, 2017
  6. Tusky commented on Sep 10, 2017

    @Tusky
    Author

    Using the newest 0.8.1 version it still reproduces :(

  7. self-assigned this
    on Sep 10, 2017
  8. shiftkey commented on Sep 10, 2017

    @shiftkey
    Member

    @Tusky I guess I missed something with my repro steps. Apologies, I'll try and get this reproducible against Electron itself (to confirm it's not a Desktop-specific issue).

  9. shiftkey commented on Sep 11, 2017

    @shiftkey
    Member

    I've got a repro here that shows the issue, but it's reproducible on the 1.8.0 beta of Electron still: https://github.com/shiftkey/electron-hungarian-keyboard-shortcut

    Trying to isolate where this problem lives before I log it upstream - hoping its an easy fix!

  10. shiftkey commented on Sep 11, 2017

    @shiftkey
    Member

    Looks like this is a Windows Intended Behaviour, and our choice of shortcut here isn't helpful. From Raymond Chen's blog:

    You may have noticed that Windows doesn't use Ctrl+Alt as a keyboard shortcut anywhere. (Or at least it shouldn't.) If a chorded modifier is needed, it's usually Ctrl+Shift.

    That's because Ctrl+Alt has special meaning on many keyboards. The combination Ctrl+Alt is also known as AltGr, and it acts as an alternate shift key. For example, consider the German keyboard layout. Notice that there are three keyboard shift states (Normal, Shift, and AltGr), whereas on U.S. keyboards there are only two (Normal and Shift). For example, to type the @ character on a German keyboard, you would type AltGr+Q = Ctrl+Alt+Q. (Some languages, like Swedish, have a fourth state: Shift+AltGr. And then of course, there's the Japanese keyboard...)

    @desktop/core I think we should change this to be Ctrl + Shift + G to align with all our other shortcuts. I don't think this clashes with an existing shortcut, but I'll confirm as part of the PR process.

  11. lee-dohm commented on Sep 11, 2017

    @lee-dohm
    Contributor

    We had to move away from Ctrl+Alt shortcuts in Atom for the same reason.

  12. locked as resolved and limited conversation to collaborators on Jul 20, 2018
  13. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions