Fixed Charmap focus bug

This commit is contained in:
Tig
2024-04-26 08:56:17 -06:00
parent 986c681775
commit eecb7dc7ef

View File

@@ -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;