Commit Graph

8 Commits

Author SHA1 Message Date
BDisp
4392f450da Fixes unit tests according to the changes. 2022-07-04 11:22:27 -04:00
BDisp
ed2c516702 Button pressed now close the menu and the menu length is the same with or without hot-keys 2022-05-07 16:14:26 +01:00
BDisp
9c36ec7c83 Fixes #1675. ContextMenu MenuItens typo 2022-04-19 13:24:39 +01:00
Jocelyn NATALI
c873db07f0 Fix context menus tests on culture != of "en-US" machines.
The "en-US" culture is forced.
2022-04-13 10:13:11 +02:00
BDisp
04f9817023 Fixes view to screen relative on the context menu. 2022-03-17 12:52:40 +00:00
BDisp
d9f52fc2f2 Changing from AssertDriverContentsWithPosAre to AssertDriverContentsWithFrameAre to return a Rect. 2022-03-17 12:49:55 +00:00
BDisp
17ed8dbed0 Only allows an open menu bar at a time. 2022-03-07 22:46:55 +00:00
BDisp
a822e1afa9 Adds a popup ContextMenu feature. Implements ContextMenu for TextField. (#1615)
* Implementing ContextMenu feature to being popup by keyboard or mouse.

* Implements ContextMenu into TextField.

* Ensures the context menu's right and bottom frame from being greater than the container.

* Added Host property. Improving scenario and unit tests.

* Only draw the RightTee if it is at the end of the menu.

* Implements cursor visibility on TextField.

* Fixes the sub-menu not showing.

* Avoids draw the menu help and shortcut if there no available space.

* Remove reference for the MenuClosing event.

* UpdateCursor must only run after the ScreenBuffer is initialized to use the cursor visibility.

* Implements Resized event on Toplevel class.

* Prevents writing overlay on the menu.

* Covering more unit tests.

* Changing from Views to Core namespace.

* Implementing MenuClosingEventArgs and MenuAllClosed event.

* Only close the menu if it's open.

* Implementing localization for en-US and pt-PT to the FileDialog.

* Implementing localization for en-US and pt-PT on the TextField context menu.

* Fixes a bug where DeleteSelectedText is updating the Text before operation completion.

* Added a method to get all the supported cultures from the Terminal.Gui.

* Improving context menu and adding more unit tests.
2022-03-06 22:01:51 -08:00