Bug 266894 - KKeySequenceWidget: Stop recording when focus is lost.
Summary: KKeySequenceWidget: Stop recording when focus is lost.
Status: REPORTED
Alias: None
Product: frameworks-kxmlgui
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-22 16:19 UTC by David Korth
Modified: 2014-10-26 15:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
KKeySequenceWidget: Cancel recording if focus is lost. (1.31 KB, patch)
2011-02-22 16:19 UTC, David Korth
Details
KKeySequenceWidget: Cancel recording if focus is lost. (#2) (1.19 KB, patch)
2011-02-22 16:21 UTC, David Korth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Korth 2011-02-22 16:19:58 UTC
Created attachment 57446 [details]
KKeySequenceWidget: Cancel recording if focus is lost.

Version:           4.6 (using KDE 4.6.0) 
OS:                Linux

Currently, KKeySequenceWidget only stops recording if either a key sequence is entered or the timeout expires. If a KKeySequenceButton is clicked and then another window is focused, the KKeySequenceWidget will keep recording the sequence, even though it doesn't have focus.

The attached patch cancels the recording if the KKeySequenceButton loses focus.

Reproducible: Always

Steps to Reproduce:
1. Click a KKeySequenceButton within a KKeySequenceWidget.
2. Move input focus to another window.
3. Press a key sequence.

Actual Results:  
The KKeySequenceButton captures the key sequence.

Expected Results:  
The KKeySequenceButton should ignore the key sequence.
Comment 1 David Korth 2011-02-22 16:21:09 UTC
Created attachment 57447 [details]
KKeySequenceWidget: Cancel recording if focus is lost. (#2)

Same patch, but without the backup files listed.