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

HotKeyBox gives wrong names to multimedia buttons #2585

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

HotKeyBox gives wrong names to multimedia buttons #2585

bigworld12 opened this issue Jul 16, 2016 · 5 comments
Assignees
Labels
Milestone

Comments

@bigworld12
Copy link
Contributor

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
Copy link
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
Copy link
Contributor Author

bigworld12 commented Jul 17, 2016

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

@thoemmi
Copy link
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
Copy link
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
Copy link
Contributor Author

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
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