Change Home/End to go to first/last cell in table in FileDialog2

This commit is contained in:
tznind
2023-01-05 20:08:31 +00:00
parent 85dd834b1e
commit 045eb8b3c0

View File

@@ -191,6 +191,12 @@ namespace Terminal.Gui {
this.tableView.KeyUp += (k) => k.Handled = this.TableView_KeyUp (k.KeyEvent);
this.tableView.SelectedCellChanged += this.TableView_SelectedCellChanged;
this.tableView.ColorScheme = ColorSchemeDefault;
this.tableView.AddKeyBinding (Key.Home, Command.TopHome);
this.tableView.AddKeyBinding (Key.End, Command.BottomEnd);
this.tableView.AddKeyBinding (Key.Home | Key.ShiftMask, Command.TopHomeExtend);
this.tableView.AddKeyBinding (Key.End | Key.ShiftMask, Command.BottomEndExtend);
this.treeView.ColorScheme = ColorSchemeDefault;
this.treeView.KeyDown += (k) => k.Handled = this.TreeView_KeyDown (k.KeyEvent);