소스 검색

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

Ruben 1 개월 전
부모
커밋
d13027328a
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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)
     protected override void OnKeyDown(KeyEventArgs e)
     {
     {
         // Disable keyboard behavior #248
         // Disable keyboard behavior #248
+        
+        // Fix tab
+        if (e.Key == Key.Tab)
+        {
+            _ = AssociateKey(e);
+        }
     }
     }
 
 
     private void OnGotFocus(object? sender, GotFocusEventArgs e)
     private void OnGotFocus(object? sender, GotFocusEventArgs e)