Return focus when using UP/DOWN on unfocused meter

This commit is contained in:
Derrick Timmermans 2021-07-04 15:42:26 +02:00
parent d0707079b1
commit 50c9e17e52
No known key found for this signature in database
GPG Key ID: 8681B60806EF4A17
1 changed files with 5 additions and 1 deletions

View File

@ -338,9 +338,13 @@ protected override void OnHoverLost(HoverLostEvent e)
public bool OnPressed(GlobalAction action)
{
if (!IsHovered || !isFocused)
if (!IsHovered)
return false;
// Grab back focus is UP/DOWN input is directed at this meter
if (!isFocused)
RequestFocus?.Invoke(this);
switch (action)
{
case GlobalAction.SelectPrevious: