Permalink
Browse files

[lib] use right and left arrows

  • Loading branch information...
1 parent 6712571 commit 54bdc416132c2995cf87f5bde3635e0e7016c1e6 Paolo Fragomeni committed Apr 20, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 cdir.js
View
@@ -232,18 +232,15 @@ var listener = function listener(chunk, key) {
//
// if this is a toggle, the value must be of type array or object.
//
- if ((key.name === 'space' || key.name === 'enter') &&
+ if ((key.name === 'space' || key.name === 'enter' ||
+ key.name === 'right' || key.name === 'left') &&
(meta[index].type === 'array' || meta[index].type === 'object')) {
var start = selection;
var stop = meta.length;
var next = meta[index].depth+1;
var started = false;
- if (meta[index].type === 'string') {
- return;
- }
-
if (meta[index].expanded) {
meta[index].expanded = false;

0 comments on commit 54bdc41

Please sign in to comment.