Ctrl+Left/Right navigates incorrectly in Dash search field

Bug #737726 reported by Matthew Paul Thomas
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Nux
Fix Released
Undecided
Unassigned
Unity
Fix Released
Undecided
Joseph Wen
nux (Ubuntu)
Fix Released
Undecided
Unassigned
unity (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

1. Open the Dash.
2. Type "one two three".
3. Press Ctrl Left.
4. Press Ctrl Left again.

What happens:
2. The caret moves to the start of "three".
3. The caret moves to the end of "two".

What should happen:
2. The caret moves to the start of "three".
3. The caret moves to the start of "two".

Navigating by word does not mean navigating to the nearest beginning/end of a word. It means navigating to the nearest boundary between alphanumeric characters and non-alphanumeric characters, *unless* that nearest boundary is only one character away or there's nothing except whitespace characters between it and the caret, in which case it means skipping to the boundary beyond that.

Problem occurs in: unity 3.6.6-0ubuntu1, Ubuntu Natty
Does not occur in: LibreOffice, GEdit, Tomboy

Tags: sniffles

Related branches

tags: added: sniffles
Gary M (garym)
Changed in unity:
status: New → Confirmed
Changed in unity (Ubuntu):
status: New → Confirmed
Joseph Wen (wenjoseph)
Changed in unity:
assignee: nobody → Joseph Wen (wenjoseph)
Revision history for this message
Joseph Wen (wenjoseph) wrote :

I think this is a bug in Nux because the input is handled by TextEntry.
The problem seems to be in the TextEntry::MoveWords method. I will try to submit a patch.

Joseph Wen (wenjoseph)
Changed in unity:
status: Confirmed → In Progress
Changed in unity (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Omer Akram (om26er) wrote :

attached branch reviewed and merged fixing the issue hence closing this bug

Changed in nux:
status: New → Fix Released
Changed in unity:
status: In Progress → Fix Released
Changed in nux (Ubuntu):
status: New → Fix Released
Changed in unity (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.