Bug 367998 - quick-search field does not receive some keys
Summary: quick-search field does not receive some keys
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: folders (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-30 09:58 UTC by Martin Koller
Modified: 2017-12-21 20:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Koller 2016-08-30 09:58:14 UTC
Version 5.3.0 (QtWebEngine)

When using the quick-search filter field above the folder tree, I can no longer enter some characters,
e.g. typing "cvs" would just enter "cv" and after the v the focus is gone from this field.

It seems to me that all characters which are shortcuts (as "v" is for "view source") trigger this problem.

Reproducible: Always
Comment 1 David Faure 2016-09-03 11:19:57 UTC
Do you mean that typing "cvs" always loses focus while typing it, or only when doing this shortly after switching to another folder ?

The bug I know about (and fixed in https://phabricator.kde.org/D2642, pending review; feel free to test this patch) happens when typing into a quick-search filter (any one of the two) just after switching folders, because the messagelist steals focus at the end of the folder loading (when enabling one of the options like "select the last message" or "select the first unread email").

Is this what you mean, or something else?
Comment 2 Martin Koller 2016-09-03 12:18:53 UTC
It seems to be something else than your patch fixes, since I can wait for some/lots seconds, even selecting a mail in the message list, etc.
Just Typing "cv" and the focus is gone.

But it somehow depends on which folder I have selected before.
E.g. I have an IMAP account and the "Local Folders".
Selecting any folder from the IMAP account and I can type "cvs".
Selecting "Local Folders" (root node) - works
Selecting Inbox below - fails
Selecting a subfolder of inbox (Local Folders -> inbox -> Junk) already fails when typing "c"
Selecting "sent mails" - works
Selecting a subfolder of sent mails (Local Folders -> sent mails -> subfolder) - fails

It seems it has to do with the filtering itself. E.g. when I type the tree is automatically filtered.

Ok, I think I see the pattern:
Whenever the currently selected folder in the tree is filtered away, the focus gets lost
... well at least kind of. It's not always this pattern :-(
Comment 3 Jan-Matthias Braun 2017-01-09 07:40:06 UTC
Hi! I am not sure, if this really is the same problem, but as I see it, I do see a general problem with the focus strategy. :-)

1. Whenever I select an e-Mail, the mail view is focused. This means, that actions like delete don't work anymore. Only when I select an e-Mail a second time, things are back to normal and the focus stays in the message list.

2. Whenever I enter text into the search field, right after updating the message list, the focus seems to go to the mail view, too. Of course, any keystrokes won't go to the search field anymore. This is similar to the original problem here and can be reproduced reliably without any folder change.

The description of where the focus goes has been derived from ticking shift-tab until I was back at the search field. Assuming "Search Field" - "Message List" - "Message View" tab order. I.e., I went back and forth to see where the focus has ended up.

My kde installation is up to date. I.e., kmail 16.12.0, plasma 5.8.5, and frameworks 5.29. The patch noted in Comment 1 is already applied, as far as I can see.

I am not sure, when this started. Probably with the qtwebengine version? Does the mail view now focus itself?

I really like kmail, so thanks for looking into this!
Comment 4 Jan-Matthias Braun 2017-01-09 08:40:24 UTC
(In reply to Jan-Matthias Braun from comment #3)
> 2. Whenever I enter text into the search field, right after updating the
> message list, the focus seems to go to the mail view, too. Of course, any
> keystrokes won't go to the search field anymore. This is similar to the
> original problem here and can be reproduced reliably without any folder
> change.

When there is no mail displayed in the message view, e.g., one of akonadi's i-m-not-serving-any-requests-periods, then the focus won't leave the search field.
Comment 5 Martin Koller 2017-12-21 20:27:31 UTC
using git master now I can not reproduce it. closing