Skip to content

Commit

Permalink
bind o to open enteries along with enter hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
omenking committed Aug 3, 2012
1 parent dbd10bf commit 083cd70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/assets/javascripts/rubyception/routers/log.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ class App.Routers.Log extends Backbone.Router
m.bind ['j','down'] , @log.entries_index.down
m.bind ['k','up'] , @log.entries_index.up
m.bind String(i) , _.bind @log.entries_index.number_hotkey, @, String(i) for i in [0..9]
m.bind 'o' , @collection.open_selected
m.bind 'shift+g' , _.bind @log.entries_index.goto_number, @, 'bottom'
m.bind 'g g' , _.bind @log.entries_index.goto_number, @, 'top'
m.bind 'enter' , @log.entries_index.toggle_open
m.bind ['o','enter'], @log.entries_index.toggle_open
index: =>
@log = @partial '.content', 'logs/show',
collection: @collection
Expand Down

0 comments on commit 083cd70

Please sign in to comment.