Created
May 24, 2021 14:24
-
-
Save mrdrozdov/127fc787a529f572cec7145f63b36c94 to your computer and use it in GitHub Desktop.
slate.js
This file contains 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
var pushLeft = slate.operation("push", { | |
"direction" : "left", | |
"style" : "bar-resize:screenSizeX/2" | |
}); | |
var pushRight = slate.operation("push", { | |
"direction" : "right", | |
"style" : "bar-resize:screenSizeX/2" | |
}); | |
var pushDown = slate.operation("push", { | |
"direction" : "down", | |
"style" : "bar-resize:screenSizeY/2" | |
}); | |
var pushUp = slate.operation("push", { | |
"direction" : "up", | |
"style" : "bar-resize:screenSizeY/2" | |
}); | |
var fullscreen = slate.operation("push", { | |
"direction" : "up", | |
"style" : "bar-resize:screenSizeY" | |
}); | |
slate.bind("left:cmd,alt", pushLeft); | |
slate.bind("right:cmd,alt", pushRight); | |
slate.bind("down:cmd,alt", pushDown); | |
slate.bind("up:cmd,alt", pushUp); | |
slate.bind("down:cmd,alt,ctrl", fullscreen); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment