Skip to content

Instantly share code, notes, and snippets.

@tmyt
Created December 22, 2010 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmyt/751083 to your computer and use it in GitHub Desktop.
Save tmyt/751083 to your computer and use it in GitHub Desktop.
AzureaScriptExtension Sample - QuotedReply
function quotedReply(id)
{
var status = TwitterService.status.get(id);
var text = "QT @" + status.user.screen_name + ": " + status.text;
TextArea.text = text;
TextArea.in_reply_to_status_id = status.id;
TextArea.show();
TextArea.setFocus();
TextArea.setCursor(0);
}
System.addContextMenuHandler("QT", 0, quotedReply);
System.addKeyBindingHandler("Q".charCodeAt(0), 0, quotedReply);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment