Skip to content
Browse files

Add Ctrl-R to manually refresh.

  • Loading branch information...
1 parent 0933c4c commit fa92c1e87667e15a921bede75a7e77e55b224444 @drdrang committed Jan 11, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 twoot.js
View
12 twoot.js
@@ -480,15 +480,23 @@ $(document).ready(function(){
return false;
});
- // Add event capture to status field. Cmd-Return is same as clicking
+ // Cmd-Return in the status field is same as clicking
// the Update button.
$("#status").keypress( function(e) {
if (e.which == 13 && e.metaKey) {
setStatus($("#status").val());
return false;
}
});
-
+
+ // Manually refresh by typing Ctrl-R.
+ $("html").keypress( function(e) {
+ if (e.which == 18 && e.ctrlKey) {
+ refreshMessages();
+ return false;
+ }
+ });
+
//set timer to reload timeline, every REFRESH milliseconds
window.setInterval("refreshMessages()", REFRESH);

0 comments on commit fa92c1e

Please sign in to comment.
Something went wrong with that request. Please try again.