Commit Graph

771 Commits

Author SHA1 Message Date
BDisp
9646c101b0 Fix a conflict with this unit test and the TestVKPacket unit test. 2024-04-22 00:05:07 +01:00
dependabot[bot]
64a21073fa Bump xunit from 2.7.0 to 2.7.1
Bumps [xunit](https://github.com/xunit/xunit) from 2.7.0 to 2.7.1.
- [Commits](https://github.com/xunit/xunit/compare/2.7.0...2.7.1)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-12 14:09:49 +00:00
Tig
f7ac933d2f Merge pull request #3352 from BDisp/v1_tabindex-fix_3351
Fixes #3351 (V1). TabIndex with the same setter value but with wrong index return without set the correct value.
2024-03-31 10:48:16 -06:00
dependabot[bot]
9afd59c8e0 Bump ReportGenerator from 5.2.3 to 5.2.4
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 5.2.3 to 5.2.4.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v5.2.3...v5.2.4)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-28 14:45:44 +00:00
BDisp
bf07d24d9b Add unit test that proof setting TabIndex before all views are added, will have unexpected result. 2024-03-27 15:25:41 +00:00
BDisp
58fa801917 Fixes #3351. TabIndex with the same setter value but with wrong index return without set the correct value. 2024-03-26 23:54:40 +00:00
Tig
cdad0e7f47 Updated nuget packages 2024-03-16 07:44:09 -08:00
Tig
214ff12c9f Merge pull request #3321 from BDisp/v1_listview-selecteditemchanged-marks-click.fix_3317
Fixes #3317. v1-Listvew mouse event doesn't cause a SelectedItemChanged event to fire
2024-03-16 07:39:16 -08:00
BDisp
1724e71601 Using mask check instead of HasFlag method. 2024-03-14 11:57:51 +00:00
BDisp
e08e873139 Rename to Raised. 2024-03-14 11:47:49 +00:00
BDisp
b1218d7436 Rename to Raised. 2024-03-14 11:29:16 +00:00
BDisp
157a32312b Fixes #3317. Listvew mouse event doesn't cause a SelectedItemChanged event to fire 2024-03-13 21:17:35 +00:00
BDisp
37e76d174d Fixes #3318. v1-MouseClick should be invoked only once on a mouse click. 2024-03-13 21:09:32 +00:00
dependabot[bot]
384735a23e Bump ReportGenerator from 5.2.1 to 5.2.2
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v5.2.1...v5.2.2)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 14:59:22 +00:00
Tig
54bcaa8c73 V1 Updates nuget packages and fixes a unit test issue (#3259)
* Updated to use Nstack v1.1.1

* Updated nuget refs and fixed unit test namespace error

* readme fix

* Lame change to .sln to try to force build action

* Try to fix test action

* Try to fix test action 2

* Try to fix test action 3
2024-02-22 06:50:50 -07:00
ilCosmico
18d38d3893 Fixes #3178. v1 - Library has no strong-name. (#3191)
* Add strong-name signing

Add strong-name signing as requested for issue https://github.com/gui-cs/Terminal.Gui/issues/3178

* Add strong name sign to UnitTests project

Added strong name to UnitTests project too.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2024-01-22 06:39:44 -07:00
BDisp
b65092fcaa Fixes #2095. Resizing when a context menu is open causes the Enter event to get spammed (#3193)
* Fixes #2095. Resizing when a context menu is open causes the Enter event to get spammed

* Update nuget packages.
2024-01-20 09:34:51 -07:00
BDisp
1d44f2e046 Fixes #2571. Wizards background shifts to gray when focusing, looks bad. (#3194)
* Fixes #2571. Wizards background shifts to gray when focusing, looks bad.

* Update nuget packages.

* Trying to fix the CodeQL failing.
2024-01-20 09:19:13 -07:00
BDisp
ce7ecb51d8 Fixes #2252. Pressing the ENTER key in a TextField should not move the focus (#3195)
* Fixes #2252. Pressing the ENTER key in a TextField should not move the focus

* Update xml doc.

* Tested on WSL-Ubuntu-20.04
2024-01-20 09:16:59 -07:00
dependabot[bot]
7e7fd12b3d Bump xunit from 2.6.4 to 2.6.5 (#3126)
Bumps [xunit](https://github.com/xunit/xunit) from 2.6.4 to 2.6.5.
- [Commits](https://github.com/xunit/xunit/compare/2.6.4...2.6.5)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-05 08:00:17 -07:00
Andrey Akinshin
b4975f4747 Fixes #3090. Introduce StatusItem.HotTextSpecifier (#3093) 2024-01-04 07:17:20 -07:00
dependabot[bot]
184a753127 Bump xunit from 2.6.3 to 2.6.4 (#3083)
Bumps [xunit](https://github.com/xunit/xunit) from 2.6.3 to 2.6.4.
- [Commits](https://github.com/xunit/xunit/compare/2.6.3...2.6.4)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-26 09:13:28 -07:00
Tig
3d4613710b V1: Fixes #3050 - API Doc link in Readme (#3058)
* Updated nuget refs

* Fixes #3050
2023-12-17 14:33:47 -07:00
BDisp
577fae1ac7 Fixes #3034. Text remains "invisible" in the TextView when WordWrap is activated. (#3035) 2023-12-06 09:43:25 -07:00
dependabot[bot]
3a502cae3c Bump Microsoft.NET.Test.Sdk from 17.7.2 to 17.8.0 (#2966)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.7.2 to 17.8.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
- [Commits](https://github.com/microsoft/vstest/compare/v17.7.2...v17.8.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-16 07:23:38 -07:00
BDisp
85c92f4b0d Fixes #2959. Some of the scroll features on v1 are broken. (#2960)
* Add GrabMouseEventArgs for GrabbingMouse and UnGrabbingMouse events.

* Implementing GrabbingMouse and UnGrabbingMouse in Toplevel class.

* Fix contentBottomRightCorner to draw with the right color.

* Fix a typo.

* Fix ListView to allow scrolling.

* Add a comment to explain an extra column for the cursor at the end of line.

* Add unit tests for GrabbingMouse and UnGrabbingMouse events.

* Add unit test for a Window inside a non Toplevel.

* Removes GrabMouseEventArgs.

* Prevents throwing an exception if not subscribed.

* GrabMouse must be first called before set the dragPosition.

* Add unit test to test null on GrabbingMouse and UnGrabbingMouse.

* Fix event name.

* Prevents a toplevel to overflows his bounds to allow it can be drag.

* Fix unit test.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-16 07:14:55 -07:00
usr
c7942ae3bb Fix issue where the TestViewsDisposeCorrectly was not doing what it was supposed to do (#2964)
* add Disposal Test and fix an ssue where the CopyClipboard test was failing

* Update ViewDisposalTest.cs

* Update ViewDisposalTest.cs: Some Formatting, and adding code comments.

* Fix ViewDisposalTests (Wasn't working the way it was supposed to)

* update test

* update test

* update test

* try to fix as many conflicts as possible

* make test output prettier

* fix formatting

* Fix Subviews not being empty after disposing on all views.

* The fail cause was Application.Top not being disposed.

* Fix others containers that weren't being removed.

* Revert "The fail cause was Application.Top not being disposed."

This reverts commit 0c2183ed9e.

* Application.Top isn't null and need disposing.

* Fixes #2985. Application.RunState must be responsible for dispose the Toplevel property.

* Change the unit test with ans without Application.Shutdown method.

* Update ViewDisposeTests to actually check wether ALL views have been disposed (not just container)

* small additional check just to be safe

* Update ViewDisposalTest.cs: Formatting

* Update ViewDisposalTest.cs: Minor change to re-trigger Action

TestVKPacket is acting up again. Maybe the test is running async and is receiving scan codes from other instances?

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-15 09:22:22 -07:00
BDisp
91865eed22 Fixes #2970. ScrollView doesn't remove a view that was previously added on both versions. (#2971) 2023-11-15 08:30:39 -07:00
BDisp
c348cda317 Fixes #2987. Set a MdiChild visible to false still processes keystrokes. (#2988) 2023-11-15 08:29:26 -07:00
dependabot[bot]
2001a8937e Bump xunit from 2.5.3 to 2.6.1 (#2953)
Bumps [xunit](https://github.com/xunit/xunit) from 2.5.3 to 2.6.1.
- [Commits](https://github.com/xunit/xunit/compare/2.5.3...2.6.1)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-06 14:42:15 -07:00
BDisp
d51322ad17 Fixes #2892 for v1 - Null reference pressing menu shortcuts when menus have separators (#2955) 2023-11-06 14:38:37 -07:00
Tig Kindel
20837733a7 Release v1.14.1 (2) 2023-10-30 15:04:43 -06:00
usr
34c6b6ebcc Add Disposal Test and fix an issue where the CopyClipboard test was failing (#2936)
* add Disposal Test and fix an ssue where the CopyClipboard test was failing

* Update ViewDisposalTest.cs

* Update ViewDisposalTest.cs: Some Formatting, and adding code comments.

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
2023-10-30 14:33:34 -06:00
usr
a8d2f8d733 Fixes #2913 - remove Disposed views from Responder.instances when Debugging (#2914)
* fix issue #2913

* remove disposed instances from responder.instances (optional)

* Ensures only clear Instances if they really was disposed.

* Fix unit tests.

* Update RunStateTests.cs

Minor format change to trigger new Unittest execution

* Fixes Pos/Dim static fields not being disposing.

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
2023-10-25 07:02:46 -06:00
BDisp
3e1637aac8 Fixes #2775. Something in 1.13 broke centering child windows. (#2778)
* Fixes #2776. Pressing Alt key on a Window with only a MenuBar throws System.InvalidOperationException.

* Add unit test.

* Fix extra bracket.

* Prevents throw exception if Application.Current is null.

* Fix unit test because OnLeave is now invoked on toplevel removing, preventing two views having focus.

* Fix unit test method name.

* Fix Window by not layout on his subviews when adding a new view after the Application.Begin was already running.

* FindAndOpenMenuByHotkey now search inside Menus and inside his Children.

* Add unit test for Window LayoutSubviews and FindAndOpenChildrenMenuByHotkey menu method.

* Prevents button to be clear when it's invisible.

* Fixes 2780. Moving a Window that is Application.Top shouldn't be allowed.

* Fix condition if Window and Application.Top.

* Always LayoutSubviews and PositionToplevels after Clear.

* Fixes #2787. MenuItem with CanExecute returning false is select when a MenuBar is opened.

* Leveraging the power of CanExecute feature.

* Fixes #2789. StatusItem should have a disabled attribute if it can't execute.

* Allows positioning a child window outside the limits of the menu and the status bar.

* Change to a more appropriate name.

* Simplifies all the run actions.

* Prevents open menu bar if it's invisible and close all opened menus.

* Fix mdi run loop.

* Fix hot key on mdi toplevels.

* Fix position on mdi toplevels.

* Fix Top.Redraw by set state.Toplevel.SetNeedsDisplay if it's needed to redraw.

* Fix MdiTop by repainted when a keystroke is generated by keyboard.

* Rename local fields.

* Force redraw if application.Top needs display.

* Added more features to the scenario.

* Change the scenarios to run as Application.Top instead of sub-views.

* Add a new scenario similar but as Mdi Container.

* Add a bunch of new unit tests to prove all this PR.

* Only it's need to redraw Application.Top if it's a Mdi Container.

* Remove unnecessary code.

* Unit test that proves that a MDI child leaves no trace when the location is changed.

* Removes unnecessary Application.Init because theses uses Run<T> which already call it.

* Ensures a menu bar been closed after run an action.

* Ensures that another view can be focused if not IsMenuOpen and LastFocused is null, instead of focused the menu itself.

* Ensures a focused contentview subview being focused if MostFocused is null.

* Ensures a MdiTop subview to have priority if it's focused and thus  make it Current.

* Allow a MdiChild be closed when pressing Application.QuitKey.

* More unit tests proving the changes.

* Ensures the top.MostFocused is focused.

* Ensures MdiChild on the front if MdiTop.MostFocused isn't valid, like ContentView.

* Add unit test showing MdiChild on the front.

* Fix an issue where NullReferenceException can be throws everywhere while get the Application.MdiChildes property.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-10-17 13:34:28 -04:00
dependabot[bot]
9a47180bb4 Bump xunit from 2.5.0 to 2.5.3
Bumps [xunit](https://github.com/xunit/xunit) from 2.5.0 to 2.5.3.
- [Commits](https://github.com/xunit/xunit/commits)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-17 12:25:39 -04:00
Tig
a7f53b6bae Merge pull request #2838 from gui-cs/dependabot/nuget/Microsoft.NET.Test.Sdk-17.7.2
Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.2
2023-08-30 07:05:37 -06:00
Tig
06ef44bd5a Merge pull request #2837 from BDisp/v1_request-stop-context-menu-fix_2836
Fixes #2836. v1 RequestStop while a ContextMenu is open can throw an exception.
2023-08-30 07:02:33 -06:00
Tig
67b8523317 Merge pull request #2835 from BDisp/v1_border-borderBrush-background-fix_2834
Fixes #2834. v1 Border BorderBrush and Background wrongly sets to an invalid Color enum.
2023-08-30 07:02:21 -06:00
Tig
677e84a3c3 Merge branch 'develop' into dependabot/nuget/Microsoft.NET.Test.Sdk-17.7.2 2023-08-30 06:59:31 -06:00
Tig
b283ca3642 Merge branch 'develop' into v1_request-stop-context-menu-fix_2836 2023-08-30 06:58:59 -06:00
Tig
ee9948a2a6 Merge branch 'develop' into v1_border-borderBrush-background-fix_2834 2023-08-30 06:58:48 -06:00
Tig
1c6295efa5 Merge branch 'develop' into v1_alt-key-on-toplevel-with-menubar-fix_2810 2023-08-30 06:54:16 -06:00
Tigger Kindel
17b4e3d56b cleaned out version info from csproj 2023-08-30 06:49:34 -06:00
dependabot[bot]
0c2437012b Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.2
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.7.0 to 17.7.2.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
- [Commits](https://github.com/microsoft/vstest/compare/v17.7.0...v17.7.2)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-29 14:13:33 +00:00
BDisp
d8eaf7e8bb Fixes #2836. v1 RequestStop while a ContextMenu is open can throw an exception. 2023-08-29 00:05:33 +01:00
BDisp
caf160ac32 Fixes #2834. v1 Border BorderBrush and Background wrongly sets to an invalid Color enum. 2023-08-28 15:23:04 +01:00
Tigger Kindel
1a17ecabde Commented version info 2023-08-28 06:47:45 -06:00
Tigger Kindel
b8a0f415f2 Verifying builds 2023-08-28 06:44:01 -06:00
BDisp
3a937cd290 Merge branch 'v1_develop' into v1_alt-key-on-toplevel-with-menubar-fix_2810 2023-08-23 01:43:16 +01:00