We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5b62ea + 85e8628 commit ca32f89Copy full SHA for ca32f89
Corale.Colore/Core/Keyboard.cs
@@ -32,6 +32,7 @@ namespace Corale.Colore.Core
32
{
33
using System;
34
using System.Collections.Generic;
35
+ using System.Linq;
36
37
using Corale.Colore.Annotations;
38
using Corale.Colore.Razer.Keyboard;
@@ -73,7 +74,7 @@ private Keyboard()
73
74
CurrentEffectId = Guid.Empty;
75
76
// Initialize the color array
- var names = Enum.GetNames(typeof(Key));
77
+ var names = Enum.GetNames(typeof(Key)).Where(n => n != "Invalid").ToArray();
78
_custom = new Custom[names.Length];
79
_keyIndexMapping = new Dictionary<Key, int>(names.Length);
80
0 commit comments