mirror of
https://github.com/esjeon/krohnkite.git
synced 2024-10-04 15:27:11 +03:00
reformat engine.handleUserInput
This commit is contained in:
parent
1cba656922
commit
330fa9832f
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user