Skip to content

Instantly share code, notes, and snippets.

@satyr
Created April 3, 2010 16:17
Show Gist options
  • Save satyr/354641 to your computer and use it in GitHub Desktop.
Save satyr/354641 to your computer and use it in GitHub Desktop.
brings back the good ol' single Alt for preview access
function ubiquityLoad_hackContentAccessForPreview(U){//function cmd_
const {prefs} = Utils, Shift = 1, Ctrl = 2, Alt = 4, Meta = 8;
U.panel.addEventListener('popupshowing', function hack(){
var orig = prefs.get('ui.key.contentAccess');
Utils.listenOnce(this, 'popuphidden', function restore(){
prefs.set('ui.key.contentAccess', orig);
});
prefs.set('ui.key.contentAccess', Alt);
}, false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment