Browse Source

Fix `Tab` key handling in `KeybindTextBox` #248

Ruben 1 tháng trước cách đây
mục cha
commit
d13027328a
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/PicView.Avalonia/CustomControls/KeybindTextBox.cs

+ 6 - 0
src/PicView.Avalonia/CustomControls/KeybindTextBox.cs

@@ -104,6 +104,12 @@ public class KeybindTextBox : TextBox
     protected override void OnKeyDown(KeyEventArgs e)
     {
         // Disable keyboard behavior #248
+        
+        // Fix tab
+        if (e.Key == Key.Tab)
+        {
+            _ = AssociateKey(e);
+        }
     }
 
     private void OnGotFocus(object? sender, GotFocusEventArgs e)