Comment 0 for bug 1280759

Revision history for this message
Masoud Abkenar (mabkenar) wrote : Shortcuts are defined via keyboard layout, not the keys

There are shortcuts to open lenses in Unity, for example "Super + A" for App Lens, or "Super + F" for Files Lens, etc. There are also shortcuts in the Launcher "Super + 1 to 9" to launch apps from the Launcher. These shortcuts don't work if the keyboard layout is set to a non-Latin layout, in my case Persian, where almost all the keys are mapped to new characters.

HOW TO REPRODUCE:
Add a new Persian keyboard layout to the system, in addition to English, via keyboard layout indicator --> Text Entry Settings.
Switch to the Persian layout (by clicking on the keyboard layout indicator).
Press "Super + F".

WHAT HAPPENS:
Dash is not open. Nothing happens.

WHAT SHOULD HEPPEN:
The Files Lens in the dash should open.
The shortcuts should be associated with the keys on the keyboard, not to the characters they are associated with (which depends on the active keyboard layout).
When I am typing something in Persian, and I want to search for a file, it is not reasonable that I should first switch back to the English layout before I can use a particular shortcut.

====================
This problem does not happen in some other apps like gedit or Firefox.

COMPARE TO GEDIT:
Open gedit text editor.
Write something.
Switch to the Persian layout.
Press "Ctrl + S" (the shortcut to save the document).

WHAT HAPPENS, AND WHAT SHOULD HAPPEN:
The save dialoge box appears.

====================
I think this problem happens for all keyboard layouts that don't use Latin characters.
Layout-wise, when I press "Ctrl + S" while Persian layout is active, I am typing "Ctrl + س".
But keyboard-wise, I am always pressing the same keyboard binding.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libunity9 7.1.4+14.04.20140210-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-8.27-generic 3.13.2
Uname: Linux 3.13.0-8-generic x86_64
ApportVersion: 2.13.2-0ubuntu4
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Feb 16 12:04:10 2014
InstallationDate: Installed on 2014-02-15 (0 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140211)
SourcePackage: libunity
UpgradeStatus: No upgrade log present (probably fresh install)