Skip to content

Commit

Permalink
Add open shortcut to item iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Mar 20, 2017
1 parent 425734b commit fc0b885
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion res/keymaps/project.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ linux: &linux
down: ArrowDown
left: ArrowLeft
right: ArrowRight
open: Space
preview: Space
open: Enter

NotePad:
break: Enter
Expand Down
4 changes: 4 additions & 0 deletions src/components/item/iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ class ItemIterator extends Iterator {
break

case 'open':
this.props.onItemOpen(this.getCurrentItem())
break

case 'preview':
this.props.onItemPreview(this.getCurrentItem())
break

Expand Down

0 comments on commit fc0b885

Please sign in to comment.