Right-clicking in a QKeySequenceEdit opens the usual context menu for a line edit, which generates a focusOut event. QKeySequenceEdit finishes the recording when it loses focus, which includes deselecting the text. We should not finish or deselect if the focusOut event has focusReason FocusReasonPopup, as otherwise users cannot copy the text (keyboard shortcuts don't work for that, obviously). Task-number: QTBUG-114624 Change-Id: I0b3c535c189151daa29cf17640493f3353e6394b Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 89566bf7491cd717a6f64a0a8b82306309bb0701) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%