Closed svandragt closed 11 months ago
I tried the same way with #457 to fix this issue and confirmed I can assign Eject key for shortcuts on my MacBook Air (11-inch, 2010):
diff --git a/src/Widgets/Shortcuts/CustomShortcutListBox.vala b/src/Widgets/Shortcuts/CustomShortcutListBox.vala
index 94cb8c15..16ac0e60 100644
--- a/src/Widgets/Shortcuts/CustomShortcutListBox.vala
+++ b/src/Widgets/Shortcuts/CustomShortcutListBox.vala
@@ -338,6 +338,7 @@ class Pantheon.Keyboard.Shortcuts.CustomShortcutListBox : Gtk.ListBox, ShortcutD
case Gdk.Key.F12:
case Gdk.Key.Menu:
case Gdk.Key.Print:
+ case Gdk.Key.Eject:
// Accept certain keys as single key accelerators
var shortcut = new Pantheon.Keyboard.Shortcuts.Shortcut (keyval, mods);
update_binding (shortcut);
diff --git a/src/Widgets/Shortcuts/ShortcutListBox.vala b/src/Widgets/Shortcuts/ShortcutListBox.vala
index 8136e3f6..957e16b8 100644
--- a/src/Widgets/Shortcuts/ShortcutListBox.vala
+++ b/src/Widgets/Shortcuts/ShortcutListBox.vala
@@ -266,6 +266,7 @@ private class Pantheon.Keyboard.Shortcuts.ShortcutListBox : Gtk.ListBox, Shortcu
case Gdk.Key.F12:
case Gdk.Key.Menu:
case Gdk.Key.Print:
+ case Gdk.Key.Eject:
// Accept certain keys as single key accelerators
var shortcut = new Pantheon.Keyboard.Shortcuts.Shortcut (keyval, mods);
update_binding (shortcut);
However, the assigned action is not triggered for some reason even if I push Eject key. (might be swallowed by someone like GSD?)
As a workaround you can use dconf and set the <Eject>
string as a value for the keybinding (in my case /org/pantheon/desktop/gala/keybindings/expose-windows
) until the settings panel is updated. Interestingly, for me that is triggering once it is assigned.
However, the assigned action is not triggered for some reason even if I push Eject key. (might be swallowed by someone like GSD?)
Kind of... When gala starts, GSD grabs all media-keys listed as *-static
in /org/gnome/settings-daemon/plugins/media-keys/
(such as XF86Eject
or XF86AudioLowerVolume
) and for that reason the shortcuts are not triggered.
The workaround is to find corresponding *-static
shortcut in /org/gnome/settings-daemon/plugins/media-keys/
and remove it. After that the <Eject>
(and all the others) should work.
TBH I don't know why *-static
exists. Maybe we can move the *-static
shortcuts into their normal versions and fix the issue by displaying the shortcuts in the plug.
What Happened?
In eos6.1 I was able to set my eject key to trigger multitasking view but on eos7 the key is no longer recognised when attempting to capture it (setting a new shortcut key). Instead nothing happens.
Steps to Reproduce
Expected Behavior
Eject key is set as shortcut
OS Version
7.x (Early Access)
Software Version
Latest release (I have run all updates)
Log Output
This is the log of
xev
for a keypress and release of the eject key:Hardware Info
Apple Magic Keyboard model A1644, connected with a usb-lightning cable.