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

Change mapping delete key to shift+delete to allow binding delete key #2375

Merged
merged 8 commits into from
May 14, 2018

Conversation

aQaTL
Copy link
Contributor

@aQaTL aQaTL commented Apr 9, 2018

This is my solution for Issue #2363. Delete key still deletes key binding, but you can now bind it by alt+delete key combination. In addition to that, now it is possible to assign any key combination with Delete key except alt+delete.

One thing I'm not sure about is to where it should be documented.

@peppy
Copy link
Sponsor Member

peppy commented Apr 10, 2018

If anything, this is backwards and removing existing bindings should be done using Shift+Del.

We may be better off designing the UI to have a button to unbind as well, for cases where a keyboard is not available.

@peppy
Copy link
Sponsor Member

peppy commented Apr 11, 2018

You didn't update the label to match.

@aQaTL
Copy link
Contributor Author

aQaTL commented Apr 11, 2018

Label updated. I also adjusted the overlay width. Not sure how you would have preferred to do that - I changed the width only of KeyBindingOverlay instead of SettingsOverlay.

@peppy peppy changed the title Allow mapping delete key via alt+delete key combination Change mapping delete key to shift+delete to allow binding delete Apr 18, 2018
@@ -198,18 +198,22 @@ protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
if (!HasFocus)
return false;

switch (args.Key)

This comment was marked as off-topic.

@@ -12,6 +12,8 @@ namespace osu.Game.Overlays
{
public class KeyBindingOverlay : SettingsOverlay
{
protected const float WIDTH = 430;

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@peppy peppy changed the title Change mapping delete key to shift+delete to allow binding delete Change mapping delete key to shift+delete to allow binding delete key May 14, 2018
@peppy
Copy link
Sponsor Member

peppy commented May 14, 2018

In the process of fixing that last piece, I discovered a framework-level issue (ppy/osu-framework#1552) but as this is completely irrelevant to this PR and already existed before it, this should be fine to go through with 👍.

@peppy peppy merged commit 15d6c1f into ppy:master May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants