Created
April 3, 2010 16:17
-
-
Save satyr/354641 to your computer and use it in GitHub Desktop.
brings back the good ol' single Alt for preview access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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