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

HotKeyBox gives wrong names to multimedia buttons #2585

Closed
bigworld12 opened this Issue Jul 16, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@bigworld12
Contributor

bigworld12 commented Jul 16, 2016

What steps will reproduce this issue?

when assigning a multimedia key to the HotKeyBox it will display it with wrong name e.g.
Key.MediaPlayPause > shows like this : http://puu.sh/q3BTW/da94bd8c0d.png
G Instead of MediaPlayPause

Expected outcome

it should view MediaPlayPause instead of G

Environment

  • MahApps.Metro v1.3.0-ALPHA176
  • Windows 10
  • Visual Studio 2015
  • .NET Framework 4.5.2
@thoemmi

This comment has been minimized.

Show comment
Hide comment
@thoemmi

thoemmi Jul 17, 2016

Collaborator

I can reproduce the issue. However, I don't know how to fix it at the moment. GetKeyNameText just returns G for MediaPlayPause. I'll have to investigate further...

Collaborator

thoemmi commented Jul 17, 2016

I can reproduce the issue. However, I don't know how to fix it at the moment. GetKeyNameText just returns G for MediaPlayPause. I'll have to investigate further...

@bigworld12

This comment has been minimized.

Show comment
Hide comment
@bigworld12

bigworld12 Jul 17, 2016

Contributor

Why not use Key.ToString() instead ? @thoemmi

Contributor

bigworld12 commented Jul 17, 2016

Why not use Key.ToString() instead ? @thoemmi

@thoemmi

This comment has been minimized.

Show comment
Hide comment
@thoemmi

thoemmi Jul 17, 2016

Collaborator
  • strings like MediaPlayPause or NumPad0 are not optimal to be presented to the end user
  • it wouldn't be localized
Collaborator

thoemmi commented Jul 17, 2016

  • strings like MediaPlayPause or NumPad0 are not optimal to be presented to the end user
  • it wouldn't be localized
@thoemmi

This comment has been minimized.

Show comment
Hide comment
@thoemmi

thoemmi Jul 26, 2016

Collaborator

Unfortunately, the Windows API can't help. I asked at StackOverflow, and there's no standard way to get the names of special keys such as the media buttons. 😫

Collaborator

thoemmi commented Jul 26, 2016

Unfortunately, the Windows API can't help. I asked at StackOverflow, and there's no standard way to get the names of special keys such as the media buttons. 😫

@bigworld12

This comment has been minimized.

Show comment
Hide comment
@bigworld12

bigworld12 Jul 27, 2016

Contributor

then maybe create a simple dictionary of Key,string for special keys ,and then we can handle localization later ?

Contributor

bigworld12 commented Jul 27, 2016

then maybe create a simple dictionary of Key,string for special keys ,and then we can handle localization later ?

@punker76 punker76 added this to the 1.4.0 milestone Jul 27, 2016

@punker76 punker76 removed this from the 1.4.0 milestone Oct 27, 2016

@punker76 punker76 added this to the 1.4.2 milestone Jan 27, 2017

@punker76 punker76 closed this Jan 27, 2017

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