mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixed Charmap focus bug
This commit is contained in:
@@ -870,16 +870,11 @@ internal class CharMap : View
|
||||
return;
|
||||
}
|
||||
|
||||
args.Handled = true;
|
||||
|
||||
if (me.Y == 0)
|
||||
{
|
||||
me.Y = Cursor.Y;
|
||||
}
|
||||
|
||||
if (me.Y > 0)
|
||||
{ }
|
||||
|
||||
if (me.X < RowLabelWidth || me.X > RowLabelWidth + 16 * COLUMN_WIDTH - 1)
|
||||
{
|
||||
me.X = Cursor.X;
|
||||
@@ -905,6 +900,13 @@ internal class CharMap : View
|
||||
Hover?.Invoke (this, new (val, null));
|
||||
}
|
||||
|
||||
if (!HasFocus && CanFocus)
|
||||
{
|
||||
SetFocus ();
|
||||
}
|
||||
|
||||
args.Handled = true;
|
||||
|
||||
if (me.Flags == MouseFlags.Button1Clicked)
|
||||
{
|
||||
SelectedCodePoint = val;
|
||||
|
||||
Reference in New Issue
Block a user