Merge lp:~3v1n0/nux/text-entry-double-deadkeys-fix into lp:nux
Proposed by
Marco Trevisan (Treviño)
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Marco Trevisan (Treviño) | ||||||||
Approved revision: | 665 | ||||||||
Merged at revision: | 630 | ||||||||
Proposed branch: | lp:~3v1n0/nux/text-entry-double-deadkeys-fix | ||||||||
Merge into: | lp:nux | ||||||||
Prerequisite: | lp:~3v1n0/nux/text-entry-compose-ignore-modifiers | ||||||||
Diff against target: |
275 lines (+144/-32) 3 files modified
Nux/TextEntry.cpp (+35/-31) Nux/TextEntry.h (+1/-1) tests/gtest-nux-textentry.cpp (+108/-0) |
||||||||
To merge this branch: | bzr merge lp:~3v1n0/nux/text-entry-double-deadkeys-fix | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brandon Schaefer (community) | Approve | ||
Review via email: mp+113479@code.launchpad.net |
Commit message
TextEntry: correctly handle a "double-deadkey" pressure
Correctly reset the dead_key mode when terminated.
Description of the change
When a deadkey was pressed twice it worked correctly only once, since we were not handling correctly this case.
Now if we're in dead_key_mode and the user types another dead_key we check if the one that has been pressed is equal to the first one, in that case we accept it and we exit from the dead_key mode.
Added gtests.
To post a comment you must log in.
Looks good, and all tests pass.