<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hi Johannes,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">these seemingly simple things are
always much more complicated than expected, see below in the text.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Anyway, I am on the branch for now to
give it a go - let's see how it develops.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Best regards, Andreas<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Am 16.02.21 um 01:02 schrieb Johannes
Zarl-Zierl:<br>
</div>
<blockquote type="cite" cite="mid:2253847.GAQig012V3@mani">
<pre class="moz-quote-pre" wrap="">Hi Andreas,
Am Mittwoch, 3. Februar 2021, 00:30:55 CET schrieb Johannes Zarl-Zierl:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">I use the search box in many other cases (when sifting through
categories or so) but then I always know which data pool I am fishing in.
So my preference would be #3:
- when in thumbnail view: focus on the thumbnails,
- when in other views: focus on the search box.
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I've implemented #2 (don't give focus to search bar) anyways - at least as a
basis for further discussion.
I think given Reimar's suggestions for making the whole window more keyboard-
friendly, this variant may now work significantly better than when I initially
suggested it as an option.
If you could try out the branch "work/jzarl/searchPopup" [1,2] you'll find </pre>
</blockquote>
<p>This my current version: v5.7.0-209-gb2034b26 (after some fiddling with git - I am not so git proficient that I can swear that I have the right branch)</p>
<p>It feels nearly right.
</p>
<p>And I am just exploring the difference between searching and just typing in the category list...</p>
<p>Why is it that the arrow-keys and home/end do not act on the search string when the focus is on the search bar? The left-right arrows are "dead" and the up/down arrow keys act on the category entries.</p>
<p>I would naively expect that the keys would help editing the search string...
</p>
<p><style type="text/css">
</style></p>
<p><style type="text/css">p, li { white-space: pre-wrap; }
</style></p>
<blockquote type="cite" cite="mid:2253847.GAQig012V3@mani">
<pre class="moz-quote-pre" wrap="">that:
- the searchBar no longer has input focus by default
- pressing '/' activates the search bar (regardless of current view)</pre>
</blockquote>
I like that, feels like vim :-)<br>
<blockquote type="cite" cite="mid:2253847.GAQig012V3@mani">
<pre class="moz-quote-pre" wrap="">
- tab order makes going back to the main content easier
One further tweak that may make this even smoother could be for the SearchBar
to loose focus when it is cleared by pressing escape - any thoughts on this?</pre>
</blockquote>
<p>As mentioned above, it might worth a try to make the search box function in more or less the same way as the google search slot (in terms of key bindings when it has focus).</p>
<p>I this respect "enter" and "esc" behave different from the google example. The "esc" function is a nice addition, "enter" however behaves strangely:
</p>
<p>- in a category of many names I type 3 letters so the list is down to 6 names, none of which is highlighted</p>
<p>- on "enter" (from the search bar) some selection is done and I am back in the main window.</p>
<p><strike>- going back to the same category, I would expect to find at least one of the 6 names - but no: all of them are different.</strike></p>
<p><strike>So what exactly did my "enter" action select?</strike></p>
<p>- OK, ok, ok: the "enter" (from the search bar) selects the first in the list (which is not by default highlighted) and this name is not anymore displayed when opening the category list again.</p>
<p>- However "enter" in a fresh category selection view (without selecting anything and with focus in the list albeit not activated by any keypress) does nothing at all.
</p>
<blockquote type="cite" cite="mid:2253847.GAQig012V3@mani">
<pre class="moz-quote-pre" wrap="">
Cheers,
Johannes
[1] <a class="moz-txt-link-freetext" href="https://invent.kde.org/graphics/kphotoalbum/-/commits/work/jzarl/">https://invent.kde.org/graphics/kphotoalbum/-/commits/work/jzarl/</a>
searchPopup
[2] Sorry for the confusing branch name - I initially intended to implement a
search popup like you'd get in dolphin or firefox.
_______________________________________________
KPhotoAlbum mailing list
<a class="moz-txt-link-abbreviated" href="mailto:KPhotoAlbum@mail.kdab.com">KPhotoAlbum@mail.kdab.com</a>
<a class="moz-txt-link-freetext" href="https://mail.kdab.com/mailman/listinfo/kphotoalbum">https://mail.kdab.com/mailman/listinfo/kphotoalbum</a>
</pre>
</blockquote>
<p>
</p>
</body>
</html>