Remapping PrintScreen key to Menu makes it impossible to use the renamed key to take screenshots

Bug #1359436 reported by TomasHnyk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-control-center (Ubuntu)
New
Undecided
Unassigned

Bug Description

I do not have a menu key on my keyboard, instead I have prinsceen where Menu key normally is. So I remmaped it via xmodmap with the line:
keycode 107 = Menu NoSymbol Menu
I run xmodmap on a file with this line on every login. In xev, PrtScr correctly reports as Menu. When I try to reassign the Prinscreen command in settings>keyboard>shortcuts, to <ctrl>Menu, it seems to work and it works right away, but after I log out and log in, it no longer works even though the "<ctrl>Menu "still shows in settings>keyboard>shortcuts.

This is on 14.04, gnome-control-centre works flawlessly in this regard (I tried it under gnome-shell).

Short steps to reproduce:
1. Find out which keykode printcreen on your keyboard is using xev (I assume here it is 107)
2. xmodmap -e "keycode 107 = Menu NoSymbol Menu"
3.gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot "<Super>Menu"
4. Verify it works by pressing Super+Menu=PrtScr
5. Log out an in.
6. It no longer works.

Revision history for this message
TomasHnyk (sup) wrote :

(An obvious workaround is running a script on login that sets the desired shortcuts.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.