jcubic/jquery.terminal — Issue #16: Keydown event shoudn't prevent default browser bahavior for keys that are not use by terminal
Author: jcubic
Created: 2012-01-31 09:14:31+00:00
State: open

Right now `CTRL+R` don't work (it don't reload the page) but it's not use by terminal.

All unused shortcuts should invoke default browser actions and also keydown event handler passed as argument should force terminal to invoke that action even if it call different action for it (like in `CTRL+A`) for those keys that should act as browser default handler can return `true`.

`$(...).terminal(function(cmd){}, { keydown(e){ if (e.which == 82 && e.ctrlKey){ return true; }}});`