mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
* Fixes #1446. Added more features to the Border and Toplevel focus. * Prevents throwing exception on negative effect3DOffset values * Ensures that a view can be focused. * Only sets focus if it isn't disposing. * Fixes ViewToScreen and DrawChildBorder Effect3D. * Unit test for negative coordinates with the ViewToScreen method. * Added Tab navigation feature to the Editor scenario. * ComboBox cursonDownKey nullref fix (#1472) * added null guard to fix null ref when pressing keyDown inside combobox Improved an error message when view cannot be found * Added a unit test to ensure combobox can process all key events Found and fixed a new nullref * Found a new bug when source is already present and combobox is added to a top view * searchSet is auto initialized to new List() now to make the code a little bit safer * Fixes WindowsDriver HeightAsBuffer set to false. (#1466) * Bump ReportGenerator from 4.8.12 to 4.8.13 (#1473) Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 4.8.12 to 4.8.13. - [Release notes](https://github.com/danielpalme/ReportGenerator/releases) - [Commits](https://github.com/danielpalme/ReportGenerator/compare/v4.8.12...v4.8.13) --- updated-dependencies: - dependency-name: ReportGenerator 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> * Fixes #1445. Fixing more the Curses and WSL clipboard. (#1448) * Fixes #1445. Fixing more the Curses and WSL clipboard. * Fixing unit tests. * Changing namespace. * Fixes WSL2 clipboard unit test. * Upgrades devcontainer with the MainLoop fix. * Fixes pasting with no selection and with lines break. * Prevents the event button click being fired after a button pressed with mouse move. * Fixes the char [ not being processed. * Added Application.QuitKey property to allow change the quitting application key. (#1450) * Added Application.QuitKey property to allow change the quitting application key. * Fixes QuitKey unit test by reseting his value. * Locks timeouts until is added. * Fixes #1467. AlternateForward/BackwardKey bypasses dialog modality (#1468) * Changed namespace. * Fixing merge conflicts. * Fixes mouse click issue. * Removing windows resizing because buffer resizing is enough. * Fixes #1477. Mouse click and console bottom on Windows Terminal. Co-authored-by: Igor Bagdamyan <37334640+En3Tho@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -344,11 +344,6 @@ namespace Terminal.Gui {
|
||||
TabIndex = SuperView != null ? SuperView.tabIndexes.IndexOf (this) : -1;
|
||||
}
|
||||
TabStop = value;
|
||||
if (!value && HasFocus) {
|
||||
SetHasFocus (false, this);
|
||||
}
|
||||
OnCanFocusChanged ();
|
||||
SetNeedsDisplay ();
|
||||
}
|
||||
if (subviews != null && IsInitialized) {
|
||||
foreach (var view in subviews) {
|
||||
@@ -369,6 +364,16 @@ namespace Terminal.Gui {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!value && HasFocus) {
|
||||
SetHasFocus (false, this);
|
||||
EnsureFocus ();
|
||||
if (Focused == null) {
|
||||
Application.Top.FocusNext ();
|
||||
Application.EnsuresTopOnFront ();
|
||||
}
|
||||
}
|
||||
OnCanFocusChanged ();
|
||||
SetNeedsDisplay ();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1013,8 +1018,8 @@ namespace Terminal.Gui {
|
||||
internal void ViewToScreen (int col, int row, out int rcol, out int rrow, bool clipped = true)
|
||||
{
|
||||
// Computes the real row, col relative to the screen.
|
||||
rrow = Math.Max (row + frame.Y, 0);
|
||||
rcol = Math.Max (col + frame.X, 0);
|
||||
rrow = row + frame.Y;
|
||||
rcol = col + frame.X;
|
||||
var ccontainer = container;
|
||||
while (ccontainer != null) {
|
||||
rrow += ccontainer.frame.Y;
|
||||
|
||||
Reference in New Issue
Block a user