File tree Expand file tree Collapse file tree 4 files changed +118
-123
lines changed
Examples/UICatalog/Scenarios
Terminal.Gui/Views/TabView Expand file tree Collapse file tree 4 files changed +118
-123
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Text ;
1
+ using System . Text ;
5
2
6
3
namespace UICatalog . Scenarios ;
7
4
Original file line number Diff line number Diff line change 1
- namespace Terminal . Gui ;
1
+ namespace Terminal . Gui . Views ;
2
2
3
3
/// <summary>
4
4
/// Defines tab side.
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public TabView ()
133
133
Command . Up ,
134
134
( ) =>
135
135
{
136
- if ( _style . TabsOnBottom )
136
+ if ( _style . TabsSide == TabSide . Bottom )
137
137
{
138
138
if ( _tabsBar is { HasFocus : true } && _containerView . CanFocus )
139
139
{
@@ -176,7 +176,7 @@ public TabView ()
176
176
Command . Down ,
177
177
( ) =>
178
178
{
179
- if ( _style . TabsOnBottom )
179
+ if ( _style . TabsSide == TabSide . Bottom )
180
180
{
181
181
if ( _containerView is { HasFocus : true } )
182
182
{
@@ -224,8 +224,6 @@ public TabView ()
224
224
KeyBindings . Add ( Key . End , Command . RightEnd ) ;
225
225
KeyBindings . Add ( Key . PageDown , Command . PageDown ) ;
226
226
KeyBindings . Add ( Key . PageUp , Command . PageUp ) ;
227
- KeyBindings . Add ( Key . CursorUp , Command . Up ) ;
228
- KeyBindings . Add ( Key . CursorDown , Command . Down ) ;
229
227
}
230
228
231
229
/// <summary>
You can’t perform that action at this time.
0 commit comments