reformat engine.handleUserInput

This commit is contained in:
Eon S. Jeon 2018-11-10 17:10:42 +09:00
parent 1cba656922
commit 330fa9832f

View File

@ -142,11 +142,25 @@ class TilingEngine {
public handleUserInput = (input: UserInput) => {
// TODO: per-layout handlers
switch (input) {
case UserInput.Up: this.moveFocus(-1); this.arrange(); break;
case UserInput.Down: this.moveFocus(+1); this.arrange(); break;
case UserInput.ShiftUp: this.moveTile(-1); this.arrange(); break;
case UserInput.ShiftDown: this.moveTile(+1); this.arrange(); break;
case UserInput.SetMaster: this.setMaster(); break;
case UserInput.Up:
this.moveFocus(-1);
this.arrange();
break;
case UserInput.Down:
this.moveFocus(+1);
this.arrange();
break;
case UserInput.ShiftUp:
this.moveTile(-1);
this.arrange();
break;
case UserInput.ShiftDown:
this.moveTile(+1);
this.arrange();
break;
case UserInput.SetMaster:
this.setMaster();
break;
}
}