mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-03 03:04:27 +02:00
terminal much better
This commit is contained in:
parent
eed87168ed
commit
8bd5fb3196
7 changed files with 78 additions and 58 deletions
|
@ -52,13 +52,15 @@ var MultiView = Backbone.View.extend({
|
|||
this.navEvents = _.clone(Backbone.Events);
|
||||
this.navEvents.on('negative', this.getNegFunc(), this);
|
||||
this.navEvents.on('positive', this.getPosFunc(), this);
|
||||
this.navEvents.on('quit', this.finish, this);
|
||||
|
||||
this.keyboardListener = new KeyboardListener({
|
||||
events: this.navEvents,
|
||||
aliasMap: {
|
||||
left: 'negative',
|
||||
right: 'positive',
|
||||
enter: 'positive'
|
||||
enter: 'positive',
|
||||
esc: 'quit'
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue