terminal much better

This commit is contained in:
Peter Cottle 2013-01-08 12:00:58 -08:00
parent eed87168ed
commit 8bd5fb3196
7 changed files with 78 additions and 58 deletions

View file

@ -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'
}
});