Review Request: Fix keypress stealing issue
Commit Hook
null at kde.org
Wed Jun 8 17:12:00 BST 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101491/#review3775
-----------------------------------------------------------
This review has been submitted with commit ce405591dde09c3462c214d9f31350740ecea8c8 by Thomas Friedrichsmeier.
- Commit
On June 2, 2011, 8:38 a.m., Thomas Friedrichsmeier wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101491/
> -----------------------------------------------------------
>
> (Updated June 2, 2011, 8:38 a.m.)
>
>
> Review request for kdelibs and David Faure.
>
>
> Summary
> -------
>
> Shortcut context was not set correctly for the new "Find Text as You Type" action, which can result in the khtmlpart "stealing" '/'-keypresses from other widgets in the same main window. This patch would fix that in the most straight-forward fashion. However:
>
> a) I do wonder, why this is not simply set for *all* applicable actions (including those which do not have a shortcut set by default, but might have a user-configured shortcut!). I.e. something like
>
> foreach (QAction *action, actionCollection()->actions())
> {
> action->setShortcutContext(Qt::WidgetWithChildrenShortcut);
> }
>
> But perhaps I am overlooking something?
>
> b) This is sort of OT, but I could not help wondering:
> I was pretty confused about the difference between Find... and Find Text as You Type. Since Find... really is find-as-you-type, too. Before I finally gathered it from the sources. May I suggest condensing the three actions
> - Find...
> - Find Text as You Type
> - Find Links as You Type
> to two actions
> - Find Text (with default shortcuts Ctrl+F *and* '/')
> - Find Links
>
> Regards
> Thomas
>
>
> Diffs
> -----
>
> khtml/khtml_part.cpp ec89b0c8083989afb52ebde714e1fe757ab2e387
>
> Diff: http://git.reviewboard.kde.org/r/101491/diff
>
>
> Testing
> -------
>
>
> Thanks,
>
> Thomas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110608/b248c9cc/attachment.htm>
More information about the kde-core-devel
mailing list