|
|
|
@ -45,13 +45,16 @@ TABS.cli.initialize = function(callback) {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
textarea.keyup(function (event) {
|
|
|
|
|
var keyUp = { 38: true }, keyDown = { 40: true };
|
|
|
|
|
var keyUp = {38: true},
|
|
|
|
|
keyDown = {40: true};
|
|
|
|
|
|
|
|
|
|
if (event.keyCode in keyUp)
|
|
|
|
|
if (event.keyCode in keyUp) {
|
|
|
|
|
textarea.val(self.history.prev());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (event.keyCode in keyDown)
|
|
|
|
|
if (event.keyCode in keyDown) {
|
|
|
|
|
textarea.val(self.history.next());
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// give input element user focus
|
|
|
|
|