Skip to content

Commit

Permalink
add space
Browse files Browse the repository at this point in the history
  • Loading branch information
alswl committed Jul 1, 2014
1 parent 339c32b commit fa27d1a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .phoenix.js
Expand Up @@ -118,10 +118,14 @@ api.bind('/', mash, function() { switchApp('Finder'); });

// Multi screen
api.bind('l', mash, function() {
save_mouse_position_for_now()
Window.focusedWindow().focusNextScreen();
restore_mouse_position_for_now()
});
api.bind('h', mash, function() {
save_mouse_position_for_now()
Window.focusedWindow().focusNextScreen();
restore_mouse_position_for_now()
});
api.bind('l', mashShift, function() {
Window.focusedWindow().moveToScreen(Window.focusedWindow().screen().nextScreen());
Expand Down Expand Up @@ -154,6 +158,17 @@ api.bind('k', mash, function() {

var alert_title = function(window) { api.alert(window.title())};

api.bind('space', mash, function() {
var window = Window.focusedWindow();
if (window === undefined) {
return;
}
MousePosition.restore({
x: window.topLeft().x + window.frame().width / 2,
y: window.topLeft().y + window.frame().height / 2
});
});


api.bind('0', mash, function() {
var cw = Window.focusedWindow();
Expand Down

0 comments on commit fa27d1a

Please sign in to comment.