Win Key can not be disabled in Unity-2d
Bug #873580 reported by
Alex Wolfson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Fix Released
|
High
|
Canonical Platform QA Team | ||
unity-2d |
Fix Released
|
High
|
Alberto Mardegan | ||
unity-2d (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Summary: Win Key is not completely disabled in oneiric build on Unity-2d
Steps to reproduce:
On Unity 2d
1) Press <Super> + Any combination that works, especially numbers and "s".
Expected result: Nothing Changes
Actual result: <Super> + Combination works, as if <Super> is enabled, but shortcuts are not shown in a launcher
I tested oneiric only but looks like natty also has the same problem
Related branches
lp://staging/~mardy/unity-2d/super
- Michał Sawicz: Approve
-
Diff: 77 lines (+23/-0)3 files modifiedlauncher/app/launcherview.cpp (+3/-0)
libunity-2d-private/src/hotkeymonitor.cpp (+16/-0)
libunity-2d-private/src/hotkeymonitor.h (+4/-0)
lp://staging/~tiagosh/unity-2d/unity-2d-shell-homelens
- Albert Astals Cid (community): Approve
- Gerry Boland: Pending requested
- Michał Sawicz: Pending requested
-
Diff: 341 lines (+92/-64)9 files modifiedlibunity-2d-private/src/lens.cpp (+15/-3)
libunity-2d-private/src/lenses.cpp (+8/-5)
libunity-2d-private/src/lenses.h (+2/-0)
shell/app/shelldeclarativeview.cpp (+7/-0)
shell/app/shelldeclarativeview.h (+2/-0)
shell/dash/Dash.qml (+25/-17)
shell/dash/LensBar.qml (+20/-19)
shell/dash/LensView.qml (+7/-6)
shell/dash/RendererGrid.qml (+6/-14)
Superseded
for merging
into
lp://staging/~unity-2d-team/unity-2d/unity-2d-shell
- Albert Astals Cid (community): Approve (fun)
- Gerry Boland (community): Needs Fixing
- Michał Sawicz: Abstain
-
Diff: 341 lines (+92/-64)9 files modifiedlibunity-2d-private/src/lens.cpp (+15/-3)
libunity-2d-private/src/lenses.cpp (+8/-5)
libunity-2d-private/src/lenses.h (+2/-0)
shell/app/shelldeclarativeview.cpp (+7/-0)
shell/app/shelldeclarativeview.h (+2/-0)
shell/dash/Dash.qml (+25/-17)
shell/dash/LensBar.qml (+20/-19)
shell/dash/LensView.qml (+7/-6)
shell/dash/RendererGrid.qml (+6/-14)
Changed in oem-priority: | |
assignee: | nobody → Canonical Platform QA Team (canonical-platform-qa) |
Changed in unity-2d: | |
status: | New → In Progress |
assignee: | nobody → Alberto Mardegan (mardy) |
Changed in unity-2d: | |
status: | In Progress → Fix Committed |
milestone: | none → 4.14 |
importance: | Undecided → High |
tags: | added: sru |
tags: |
added: sru-needed removed: sru |
Changed in oem-priority: | |
status: | New → Fix Committed |
Changed in unity-2d: | |
milestone: | 4.14 → 5.2 |
Changed in unity-2d: | |
status: | Fix Committed → Fix Released |
Changed in oem-priority: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
https:/ /code.launchpad .net/~unity- 2d-team/ unity-2d/ launcher- conditional- super-key
has a commit
561. By Ugo Riboni on 2011-05-06
Make all super key behavious conditional to a gconf key
This is when conversion to dconf happened: ------- ------- ------- ------- ------- ------- ------- ------- ------- -
-------
unity-2d (3.8.12-0ubuntu1) oneiric; urgency=low
- [launcher] Migrate gconf key /desktop/ unity-2d/ launcher/ super_key_ enable
to dconf (LP: #810509)
-- Didier Roche <email address hidden> Thu, 28 Jul 2011 12:05:38 +0200
On the SUT those settings are correct: ------- ------- ------- ------- ------- ------- ------- ------- ----
-------
gsettings get com.canonical. Unity2d. Launcher super-key-enable
false
Some tech info from Ugo highlighting a scope of the problem: ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---
-------
I can give you some pointers on where to look in the code to start figuring out how to fix this issue. This is based on the natty version of the code I'm using for another project but I don't think there were many drastical changes to this part.
To see how to check if the dconf key is set or not, see for example the code in launcher/ app/launchervie w.cpp in the method updateSuperKeyM onitoring
To disable Super+Number you need to add this check in LauncherView: :forwardNumeric Hotkey (just return immediately from the method if the check for the key say it's superkey is disabled)
Super+D is not related to unity-2d, I think it's controlled by metacity and respects the gconf key /apps/metacity/ global_ keybindings/ show_desktop
For the other shortcuts that activate the various places (or lenses as they are called now): each place specify its own shortcut. unity/places/ in the various .place files you find there.
You can change (or remove them) in /usr/share/
(this last big may have changed in oneiric)