Skip to content

Commit 293b016

Browse files
author
Aytackydln
committed
add "Set NONE" button to remap window
1 parent cff135c commit 293b016

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Project-Aurora/Project-Aurora/Devices/RGBNet/Config/RgbNetKeyToDeviceKeyControl.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<Button Content="Test" Padding="10,0,10,0" ToolTip="This will blink the key on the keyboard" Click="TestBlink"/>
1313
<Border Name="ButtonBorder" BorderBrush="Aqua" BorderThickness="2" />
1414
<controls:Control_LedCaptureButton x:Name="LedCapturer" Width="180" />
15-
<Button Width="30" Content="x" Padding="10,0,10,0" ToolTip="Reset to default mapping" Click="Clear"/>
15+
<Button Width="30" Content="x" Padding="10,0,10,0" ToolTip="Reset to default mapping" Click="Reset"/>
16+
<Button Width="30" Content="" Padding="10,0,10,0" ToolTip="Don't update LED" Click="Clear"/>
1617
</StackPanel>
1718
</UserControl>

Project-Aurora/Project-Aurora/Devices/RGBNet/Config/RgbNetKeyToDeviceKeyControl.xaml.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,18 @@ private void TestBlink(object? sender, RoutedEventArgs e)
6060
BlinkCallback?.Invoke();
6161
}
6262

63-
private void Clear(object? sender, RoutedEventArgs e)
63+
private void Reset(object? sender, RoutedEventArgs e)
6464
{
6565
DeviceKeyChanged?.Invoke(this, null);
6666
UpdateMappedLedId();
6767
}
6868

69+
private void Clear(object? sender, RoutedEventArgs e)
70+
{
71+
DeviceKeyChanged?.Invoke(this, DeviceKeys.NONE);
72+
UpdateMappedLedId();
73+
}
74+
6975
private void DeviceKeyButton_OnClick(object? sender, ButtonLedChangedEventArgs ledChangedEvent)
7076
{
7177
if (Disabled)

0 commit comments

Comments
 (0)