There is a configurable and pre-defined keyboard shortcut in GNOME for CD drive eject, suited especially for keyboard junkies who hate to take their hands off the keyboard for any operation.. However, since previous 2-3 releases of GNOME, i have observed that the keyboard shortcut binding is broken.. in the sense, that it doesn’t work.
So, i defined my own custom shortcut from the “Keyboard Shortcuts” window in Preference menu of Gnome based Distro, by the following method :
- Click on ADD button in “Keyboard Shortcut” window
- Specify a name for the keyboard shortcut you are defining (in my case: EJECT CD DRIVE)
- in the command text box, specify : eject
- Click OK to get a new entry in the shortcuts window (at the bottom)
- Click on the entry at extreme right hand side
- Press the key combinations you desire for the binding.
And you are done ! try pressing the keyboard combination, and you’ll see it working absolutely fine.