Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Bug - Shortcut for staging files doesn't appear to be working. #292

Closed
ghost opened this issue Sep 25, 2015 · 7 comments
Closed

Bug - Shortcut for staging files doesn't appear to be working. #292

ghost opened this issue Sep 25, 2015 · 7 comments
Labels

Comments

@ghost
Copy link

ghost commented Sep 25, 2015

Hello

Recently you added a shortcut to confirm the Stage Files dialog (thanks for that!), but it appears the shortcut isn't working. In select-list-multiple-view, the keypress event handler seems to never be executed. If I change it to keydown, it seems to work correctly. I also only see a keycode check for 13 in the code (the enter key), but could it be that the check for the shift modifier key is missing?

Thanks in advance

@akonwi
Copy link
Owner

akonwi commented Sep 28, 2015

I can't seem to reproduce this. It works for me and switching to keydown breaks the whole thing haha. The reason I used 'keypress' is actually kind of hack-ish but it's the only way it worked for me. When the enter key is pressed, the event is caught internally by atom and doesn't continue bubbling out. The keypress event doesn't get thrown for modifier keys but when a modifier is pressed, the enter key event does in fact trigger an event for other listeners (at least in my experience).

I'm working a new release in the 5.5.0 branch. You can clone that and replace your installation of Git-plus to test if you have this problem there as well.

@ghost
Copy link
Author

ghost commented Sep 28, 2015

The 5.5.0 branch does not seem to solve the problem. Well, I must admit this is very strange, could it perhaps be some kind of platform issue (I'm on Linux)?

@akonwi
Copy link
Owner

akonwi commented Sep 29, 2015

I figured it was probably related to platform differences. I'm on Mac but it still works even when I use the ctrl key as the modifier. I'll try to improve this, ideally with onkeydown and checking for a modifier.

@akonwi akonwi added the bug label Sep 29, 2015
@akonwi
Copy link
Owner

akonwi commented Dec 7, 2016

Does this still occur?

@dayyeung
Copy link

dayyeung commented Dec 8, 2016

@akonwi I am having this issue as well
OS: Ubuntu 16.10
Atom: 1.12.6
git-plus: 5.28.0

@ghost
Copy link
Author

ghost commented Dec 8, 2016

For me, this is no longer a problem, but it works using shift + return rather than control + return.

@akonwi akonwi closed this as completed in e63ff5b Dec 8, 2016
@akonwi
Copy link
Owner

akonwi commented Dec 8, 2016

The next release will fix this actually. You will be able to use both shift and ctrl as a modifier

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants