Merge lp:~3v1n0/unity/search-bar-modifiers-filter into lp:unity
Proposed by
Marco Trevisan (Treviño)
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2428 |
Proposed branch: | lp:~3v1n0/unity/search-bar-modifiers-filter |
Merge into: | lp:unity |
Prerequisite: | lp:~3v1n0/unity/close-overlays-on-spread |
Diff against target: |
345 lines (+244/-32) 4 files modified
tests/CMakeLists.txt (+1/-0) tests/test_im_text_entry.cpp (+202/-0) unity-shared/IMTextEntry.cpp (+34/-26) unity-shared/IMTextEntry.h (+7/-6) |
To merge this branch: | bzr merge lp:~3v1n0/unity/search-bar-modifiers-filter |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Azzarone (community) | Approve | ||
Review via email: mp+111059@code.launchpad.net |
Commit message
IMTextEntry: ignore invalid keypress when using modifiers keys.
All the key pressure when pressing the Alt or Super key should be ignored.
When pressing Ctrl key we should only allow: A key, arrow keys, Backspace or Delete keys and Home or Delete keys.
Description of the change
Adding proper filters to prevent invalid Ctrl+<key> pressure and all the Super+<key> and Alt+<key> presses, to be consistent with Gtk text entries and to avoid that using a compiz keybinding (such as Super+W) would cause the key to be written into the Dash or Hud search bars.
Unit tests included.
To post a comment you must log in.
LGTM