mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 01:08:54 +03:00
Bound alt instead of ctrl on non-mac platforms
This commit is contained in:
parent
c9896befe8
commit
af21192394
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user