" +
+ var each = " Each time: " +
((after_time - before_time) / count) +
" msec
";
if (after_time - before_time >= 100)
- var total = " Total time: " +
+ var total = " Total time: " +
((after_time - before_time) / 1000.0) +
- " sec";
+ " sec";
else
- var total = " Total time: " +
- (after_time - before_time) + " msec";
+ var total = " Total time: " +
+ (after_time - before_time) + " msec";
- vimperator.echo("Code execution summary:
" +
- " Executed: " + count + " times
" + each + total);
+ vimperator.echo("Code execution summary:
" +
+ " Executed: " + count + " times
" + each + total);
}
else
{
diff --git a/chrome/content/vimperator/events.js b/chrome/content/vimperator/events.js
index ab533a36..e7b632dc 100644
--- a/chrome/content/vimperator/events.js
+++ b/chrome/content/vimperator/events.js
@@ -566,8 +566,11 @@ function Events() //{{{
// XXX: ugly hack for now pass certain keys to firefox as they are without beeping
// also fixes key navigation in combo boxes, etc.
- if (key == "" || key == "")// || key == "" || key == "" || key == "" || key == "")
- return false;
+ if (vimperator.mode == vimperator.modes.NORMAL)
+ {
+ if (key == "" || key == "" || key == "" || key == "" || key == "" || key == "")
+ return false;
+ }
// // FIXME: handle middle click in content area {{{