You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
664 B
JavaScript
25 lines
664 B
JavaScript
11 years ago
|
var pushLeftHalf = slate.operation("push", {
|
||
|
"direction" : "left",
|
||
|
"style" : "bar-resize:screenSizeX/2"
|
||
|
});
|
||
|
|
||
|
var pushLeftThird = slate.operation("push", {
|
||
|
"direction" : "left",
|
||
|
"style" : "bar-resize:screenSizeX/3"
|
||
|
});
|
||
|
|
||
|
var pushRightHalf = slate.operation("push", {
|
||
|
"direction" : "right",
|
||
|
"style" : "bar-resize:screenSizeX/2"
|
||
|
});
|
||
|
|
||
|
var pushRightThird = slate.operation("push", {
|
||
|
"direction" : "right",
|
||
|
"style" : "bar-resize:screenSizeX/3"
|
||
|
});
|
||
|
|
||
|
slate.bind("left:ctrl,alt,cmd", pushLeftHalf);
|
||
|
slate.bind("left:ctrl,alt,cmd,shift", pushLeftThird);
|
||
|
slate.bind("right:ctrl,alt,cmd", pushRightHalf);
|
||
|
slate.bind("right:ctrl,alt,cmd,shift", pushRightThird);
|