Skip to content

Instantly share code, notes, and snippets.

@leedo
Created September 16, 2009 23:26
Show Gist options
  • Save leedo/188239 to your computer and use it in GitHub Desktop.
Save leedo/188239 to your computer and use it in GitHub Desktop.
onCmdC: function(event) {
if (!this.activeWindow.input.focused) {
this.activeWindow.input.cancelNextFocus();
}
},
onCmdK: function() {
this.activeWindow.messages.update("");
this.activeWindow.lastNick = "";
},
onCmdShiftM: function() {
this.application.windows().invoke('markRead');
},
onCmdShiftJ: function() {
console.log(this.activeWindow);
this.activeWindow.scrollToBottom(1);
},
onCmdB: function() {
this.application.previousWindow();
},
onCmdF: function() {
this.application.nextWindow();
},
onOptUp: function() {
this.activeWindow.input.previousCommand();
},
onOptDown: function() {
this.activeWindow.input.nextCommand();
},
onOptEnter: function() {
this.activeWindow.input.newLine();
},
onEnter: function() {
this.activeWindow.input.send();
},
onTab: function() {
this.activeWindow.input.completeNickname();
},
onEsc: function() {
this.activeWindow.input.stopCompletion();
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment