/[refeed]/trunk/style/keyhandlers.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/style/keyhandlers.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3 by dpavlin, Wed Jul 5 00:27:49 2006 UTC revision 4 by dpavlin, Wed Jul 5 01:03:22 2006 UTC
# Line 10  Refeed.App.assignKeyPressHandler( 44, fu Line 10  Refeed.App.assignKeyPressHandler( 44, fu
10  // .: 46, jump down one feed/item  // .: 46, jump down one feed/item
11  Refeed.App.assignKeyPressHandler( 46, function(app, event) { return app.doScroll(1); });  Refeed.App.assignKeyPressHandler( 46, function(app, event) { return app.doScroll(1); });
12    
13    // vi-like keybindings
14    // j: 106, jump down one feed/item
15    Refeed.App.assignKeyPressHandler(106, function(app, event) { return app.doScroll(1); });
16    // k: 107, jump up one feed/item
17    Refeed.App.assignKeyPressHandler(107, function(app, event) { return app.doScroll(-1); });
18    
19  // r: 114, reload page  // r: 114, reload page
20  Refeed.App.assignKeyPressHandler(114, function(app, event) { location.reload(true); return false; });  Refeed.App.assignKeyPressHandler(114, function(app, event) { location.reload(true); return false; });
21    
# Line 36  Refeed.Feed.prototype.assignKeyPressHand Line 42  Refeed.Feed.prototype.assignKeyPressHand
42  Refeed.Feed.prototype.assignKeyPressHandler(117, function(feed, event) { return feed.update(); });  Refeed.Feed.prototype.assignKeyPressHandler(117, function(feed, event) { return feed.update(); });
43    
44  // a: 97  // a: 97
45  Refeed.Item.prototype.assignKeyPressHandler( 97, function(item, event) { toggle_read(item.id); return false; });  Refeed.Item.prototype.assignKeyPressHandler( 97, function(item, event) { toggle_read(item.id); Refeed.App.doScroll(1); return false; });
46  Refeed.Feed.prototype.assignKeyPressHandler( 97, function(feed, event) { archive_feed(feed.id); return false; });  Refeed.Feed.prototype.assignKeyPressHandler( 97, function(feed, event) { archive_feed(feed.id); Refeed.App.doScroll(1); return false; });
47    
48  // p: 112  // p: 112
49  Refeed.Item.prototype.assignKeyPressHandler(112, function(item, event) { toggle_published(item.id); return false; });  Refeed.Item.prototype.assignKeyPressHandler(112, function(item, event) { toggle_published(item.id); return false; });
# Line 50  Refeed.Item.prototype.assignKeyPressHand Line 56  Refeed.Item.prototype.assignKeyPressHand
56    
57  // c: 99, comment form  // c: 99, comment form
58  Refeed.Item.prototype.assignKeyPressHandler( 99, function(item, event) { populate_item_body(item.id, 'itemCommentFormHTML', 'itemTab'+item.id+'CommentTag'); return false; });  Refeed.Item.prototype.assignKeyPressHandler( 99, function(item, event) { populate_item_body(item.id, 'itemCommentFormHTML', 'itemTab'+item.id+'CommentTag'); return false; });
59    // t: 116, (tag) comment form
60    Refeed.Item.prototype.assignKeyPressHandler(116, function(item, event) { populate_item_body(item.id, 'itemCommentFormHTML', 'itemTab'+item.id+'CommentTag'); return false; });
61    
62  // digits: 48-57  // digits: 48-57
63  for(var keycode = 48; keycode <= 57; keycode += 1) {  for(var keycode = 48; keycode <= 57; keycode += 1) {

Legend:
Removed from v.3  
changed lines
  Added in v.4

  ViewVC Help
Powered by ViewVC 1.1.26