Merge lp:~adiroiban/launchpad/bug-570899 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Eleanor Berger | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 10912 | ||||
Proposed branch: | lp:~adiroiban/launchpad/bug-570899 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
327 lines (+114/-82) 1 file modified
lib/canonical/launchpad/javascript/translations/pofile.js (+114/-82) |
||||
To merge this branch: | bzr merge lp:~adiroiban/launchpad/bug-570899 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | Approve | ||
Review via email: mp+25443@code.launchpad.net |
Commit message
Don't autoselect new translations when pressing the navigation keys.
Description of the change
= Bug 570899 =
When I click on suggested translation, then click to text field to move cursor as I read original string (or whatever reason), horizontal movement (left and right cursor keys) in text field will mark suggested translation as New translation. Even though I did not made any changes.
There is a risk that I overlook it, hit Save & Continue and translation I intended to only approve is hereby translated and reviewed by me. This isn't fair to original translator regarding Karma and morally.
== Proposed fix ==
Add an exception so that key navigation will not autoselect the translations.
== Pre-implementation notes ==
No pre-implementation chat yet.
== Implementation details ==
After a first feedback from intellectronica, I have added key code constants and refactored the existent/previous code to avoid jslint warnings.
== Tests ==
Unfortunately I was not able to simulate/trigger LEFT/RIGHT/UP/DOWN and other key events.
I have also reported this problem and talked with the Windmill developer but we could not find a way for triggering such events in Firefox.
== Demo and Q/A ==
Login as admin using Firefox.
Go to https:/
Click on "bang bang in evo hoary" suggestion.
Now click on the "New translation:" text input and press the LEFT and RIGHT, UP and DOWN keys.
The new translation should not be selected and the "bang bang in evo hoary" suggestion should be still selected.
The same result should be observed with SHIFT+ALT+J and SHIFT+ALT+K
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/canonical
== JSLint notices ==
jslint: No problem found in '/home/
jslint: 1 file to lint.
Thanks for perfecting this branch. Very nice work.