mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Allows ListView trigger the Enter and Leave events. (#1508)
* Allows ListView trigger the Enter and Leave events. * Added unit test for Enter and Leave events to all views.
This commit is contained in:
@@ -256,7 +256,7 @@ namespace Terminal.Gui {
|
||||
///<inheritdoc/>
|
||||
public override void PositionCursor ()
|
||||
{
|
||||
if (HotKey == Key.Unknown) {
|
||||
if (HotKey == Key.Unknown && text != "") {
|
||||
for (int i = 0; i < base.Text.RuneCount; i++) {
|
||||
if (base.Text [i] == text [0]) {
|
||||
Move (i, 0);
|
||||
|
||||
Reference in New Issue
Block a user