Add notion of action to keyboard manager.

Instead of directly registering a function on the keyboard manager that takes closure and event parameters, this also also to register a `string`, that map to an `action`. Each action is a dict that comprise the `help`, `help_index`, and a `handler` as before, but handler take one more parameter. And this will allow to also associate a icon (font-awesome) with the action. In the end custom keymap will just be json-able dict, so easier to configure. This would also allow to make a menu<-> action link (so why not a dynamic menu) and or show shortcut next to menu items.

Ping @ellisonbg 
Thanks for the comment, I'll fix them later. 

I might not have internal access until monday but will work offline. 

Brian, in keyboard.js to deal with things like  Meta-- you /-$/_/
split on - and then re /_ /-/ IIUC, which mean that shortcut like `Whatever-_ ` are transformed Back into `Whatever--`
which seem like not correct. I was just wondering if I am missing something. 

/me running to catch train. 
-- 
M


Le 9 oct. 2014 à 21:27, Doug Blank <notifications@github.com> a écrit :

> In IPython/html/static/notebook/js/actions.js:
> 
> > +            help    : 'cut cell',
> > +            help_index : 'ee',
> > +            handler : function (event, env) {
> > +                env.notebook.cut_cell();
> > +                return false;
> > +            }
> > +        },
> > +        'copy-cell' : {
> > +            help    : 'copy cell',
> > +            help_index : 'ef',
> > +            handler : function (event, env) {
> > +                env.notebook.copy_cell();
> > +                return false;
> > +            }
> > +        },
> > +        'passte-cell-above' : {
> passte -> paste
> 
> —
> Reply to this email directly or view it on GitHub.
>