Bug 331960 - lineedit in kickoff doen't behave like a lineedit
Summary: lineedit in kickoff doen't behave like a lineedit
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: unspecified Linux
: NOR normal
Target Milestone: 1.0
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-10 13:03 UTC by Harald Sitter
Modified: 2014-03-21 02:12 UTC (History)
0 users

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 Harald Sitter 2014-03-10 13:03:46 UTC
when using kickoff's search by simply typing a lineedit appears in the top part of kickoff. this lineedit is incredibly limited it what it can do

namely it:
- doesn't have a cursor...
- can't ctrl+c / ctrl+v / ctrl+x (fwiw, modifiers in general are ignored)
- can't Del (this actually adds funny characters to the lineedit with very funy character height)
- can't do selection Backspace (i.e. select everythig with mouse, press backspace, it will do a single character backspace rather than clearing the entire selection)

Reproducible: Always
Comment 1 Sebastian Kügler 2014-03-21 02:12:04 UTC
Git commit bd3667c04c66d05d8ce457291ad36262fc8e1241 by Sebastian Kügler.
Committed on 21/03/2014 at 02:06.
Pushed by sebas into branch 'master'.

Fix search input interaction

This reworks the focus handling of the search input.

Previously, the lineedit would never keep focus, the focus always stayed
with the root item. This means that the keys for the lineedit needed to
be filtered one by one, and the lineedit wouldn't get the proper focus
visually.

This patch changes the mechanism to switch focus between lineedit and
root view / tab view. It makes the lineedit behave as one is used to.

As a cherry on top: Kickoff will paste the clipboard content with
Control+V even if the search input doesn't have focus.

M  +1    -0    plasma-desktop/applets/kickoff/package/contents/ui/Header.qml
M  +15   -24   plasma-desktop/applets/kickoff/package/contents/ui/Kickoff.qml

http://commits.kde.org/kde-workspace/bd3667c04c66d05d8ce457291ad36262fc8e1241