Skip to content

Commit

Permalink
fix: Button can't reponse Return/Enter key
Browse files Browse the repository at this point in the history
add the keys Return/Enter support in deepintheme

Issue: linuxdeepin/developer-center#5852
  • Loading branch information
wangfei authored and FeiWang1119 committed Jan 4, 2024
1 parent d0e67a9 commit b877faf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platformthemeplugin/qdeepintheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,8 @@ QVariant QDeepinTheme::themeHint(QPlatformTheme::ThemeHint hint) const
return true;
case ShowShortcutsInContextMenus:
return false;
case ButtonPressKeys:
return QVariant::fromValue(QList<Qt::Key>({ Qt::Key_Enter, Qt::Key_Return, Qt::Key_Space, Qt::Key_Select } ));
default:
break;
}
Expand Down

0 comments on commit b877faf

Please sign in to comment.