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

Template Editor Doesn't Work With Non-German Keyboard #559

Open
paulthepen opened this issue Sep 2, 2024 · 0 comments
Open

Template Editor Doesn't Work With Non-German Keyboard #559

paulthepen opened this issue Sep 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@paulthepen
Copy link

Describe the bug
The Template Editor window doesn't open when using an English keyboard

To Reproduce
Steps to reproduce the behavior:

  1. Open Macro Edit configuration
  2. Right click a button and click 'Edit'
  3. Click the pop out button next to the label
  4. Nothing happens and the following error appears in the log: MacroDeck: ApplicationThreadException: Requested value 'Bild auf' was not found.

Additional context
I'm not a C# programmer, but from what I can tell, the issue is in TemplateEditor.resx line 121 where the hotkeys are all declared in German

Log file
00:03:44 [Macro Deck] [Error] >> MacroDeck: ApplicationThreadException: Requested value 'Bild auf' was not found.
at System.Enum.TryParseByName[TStorage](RuntimeType enumType, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, TStorage& result) at System.Enum.TryParseByValueOrName[TUnderlying,TStorage](RuntimeType enumType, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, TUnderlying& result)
at System.Enum.TryParse(Type enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result)
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at System.Windows.Forms.KeysConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at FastColoredTextBoxNS.Input.HotkeysMapping.Parse(String s)
at FastColoredTextBoxNS.FastColoredTextBox.set_Hotkeys(String value)
at SuchByte.MacroDeck.GUI.Dialogs.TemplateEditor.InitializeComponent() in D:\a\Macro-Deck\Macro-Deck\MacroDeck\GUI\Dialogs\TemplateEditor.Designer.cs:line 83
at SuchByte.MacroDeck.GUI.Dialogs.TemplateEditor..ctor(String template) in D:\a\Macro-Deck\Macro-Deck\MacroDeck\GUI\Dialogs\TemplateEditor.cs:line 44
at SuchByte.MacroDeck.GUI.ButtonEditor.BtnOpenTemplateEditor_Click(Object sender, EventArgs e) in D:\a\Macro-Deck\Macro-Deck\MacroDeck\GUI\Dialogs\ButtonEditor.cs:line 513
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)

@paulthepen paulthepen added the bug Something isn't working label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant