Use QShortcut instead of grabbing focus