Skip to content

Commit

Permalink
Merge branch 'develop' into task/RDMP-100-allow-project-specific-extr…
Browse files Browse the repository at this point in the history
…action-updates
  • Loading branch information
JFriel committed Feb 13, 2024
2 parents 903c93a + abcff70 commit 7c5c163
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rdmp.Core.Tests/Rdmp.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NunitXml.TestLogger" Version="3.1.15" />
<PackageReference Include="NunitXml.TestLogger" Version="3.1.20" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Rdmp.Core\Rdmp.Core.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion Rdmp.UI.Tests/Rdmp.UI.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NunitXml.TestLogger" Version="3.1.15" />
<PackageReference Include="NunitXml.TestLogger" Version="3.1.20" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Application\ResearchDataManagementPlatform\ResearchDataManagementPlatform.csproj" />
Expand Down
9 changes: 7 additions & 2 deletions Tools/rdmp/CommandLine/Gui/ConsoleMainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,13 @@ internal void SetUp(Toplevel top)

Application.RootMouseEvent = OnRootMouseEvent;




_treeView.ObjectActivationButton = _rightClick;
_treeView.ObjectActivated += _treeView_ObjectActivated;
_treeView.KeyPress += treeView_KeyPress;
_treeView.SelectionChanged += _treeView_SelectionChanged;
_treeView.AspectGetter = AspectGetter;

var statusBar = new StatusBar(new StatusItem[]
{
new(Key.Q | Key.CtrlMask, "~^Q~ Quit", () => Quit()),
Expand Down Expand Up @@ -363,6 +364,10 @@ private void treeView_KeyPress(View.KeyEventEventArgs obj)
{
switch (obj.KeyEvent.Key)
{
case Key.Enter:
_treeView_ObjectActivated(null);
obj.Handled = true;
break;
case Key.DeleteChar:
var many = _treeView.GetAllSelectedObjects().ToArray();
obj.Handled = true;
Expand Down

0 comments on commit 7c5c163

Please sign in to comment.