Skip to content

Commit

Permalink
Improved control focus when switching tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihnea Rădulescu committed Jul 17, 2024
1 parent b9549a6 commit 7aec902
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<Copyright>Copyright © Mihnea Rădulescu 2017 - 2024</Copyright>
<AssemblyVersion>1.2024.07.17</AssemblyVersion>
<AssemblyVersion>1.2024.07.18</AssemblyVersion>
<Version>$(AssemblyVersion)</Version>
<DebugType>embedded</DebugType>
</PropertyGroup>
Expand Down
5 changes: 2 additions & 3 deletions ImageFanReloaded/Controls/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ private void AddContentTabItem()

var shouldAllowTabClose = ShouldAllowTabClose();
TabCountChanged?.Invoke(this, new TabCountChangedEventArgs(shouldAllowTabClose));

SelectLastTabItem();
}

private void CloseContentTabItem()
Expand Down Expand Up @@ -164,7 +162,8 @@ private void CloseContentTabItem()
{
FontSize = _windowFontSize,
Header = contentTabItem.ContentTabItemHeader,
Content = contentTabItem
Content = contentTabItem,
IsSelected = true
};

tabItem.KeyDown += (_, e) => e.Handled = true;
Expand Down
1 change: 1 addition & 0 deletions ImageFanReloaded/Settings/GlobalParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public GlobalParameters(
• key Tab for cycling through controls in the active tab
• key R for toggling recursive folder access, and key combo Shift+R for toggling persistent recursive folder access
• keys Up, Down, Left and Right for back and forward navigation through the folders tree, thumbnails and opened images
• keys PageUp and PageDown for scrolling through thumbnails
• key Enter for entering image view and zoomed image view modes
• key combos Ctrl+Up, Ctrl+Down, Ctrl+Left and Ctrl+Right for dragging zoomed images
• key I for toggling image info in image view and zoomed image view modes
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ User interface:
* key Tab for cycling through controls in the active tab
* key R for toggling recursive folder access, and key combo Shift+R for toggling persistent recursive folder access
* keys Up, Down, Left and Right for back and forward navigation through the folders tree, thumbnails and opened images
* keys PageUp and PageDown for scrolling through thumbnails
* key Enter for entering image view and zoomed image view modes
* key combos Ctrl+Up, Ctrl+Down, Ctrl+Left and Ctrl+Right for dragging zoomed images
* key I for toggling image info in image view and zoomed image view modes
Expand Down

0 comments on commit 7aec902

Please sign in to comment.