Bound alt instead of ctrl on non-mac platforms

This commit is contained in:
Anton Dyudin 2014-10-13 13:27:31 -07:00 committed by Anton Dyudin
parent c9896befe8
commit af21192394

View File

@ -20,8 +20,9 @@ $(function() {
hind = 0
var keys = ['l', 'x', 'r']
var mod = /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? 'ctrl' : 'alt'
for (i in keys) (function(k){
Mousetrap.bind('ctrl+' + k, function(){
Mousetrap.bind(mod + '+' + k, function(){
jpok('cmd', k)
})
})(keys[i])