summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorAcho Arnold <arnold@archlinux.info>2014-04-17 17:44:08 +0200
committerGervase Markham <gerv@gerv.net>2014-04-17 17:44:08 +0200
commit08f83a7fd0618065e2cbae443674e44fac8102e2 (patch)
treefdc7123b87380b4448490cae812e39a7ceccddd1 /template/en/default/bug
parent23bad39c2d516b7834b4fa95de054bf1ed769e8e (diff)
downloadbugzilla-08f83a7fd0618065e2cbae443674e44fac8102e2.tar.gz
bugzilla-08f83a7fd0618065e2cbae443674e44fac8102e2.tar.xz
Bug 984980 - add framework for keyboard shortcuts, and key to switch between preview and edit mode. Patch by <arnold@archlinux.info>, r=gerv, a=justdave.
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/show-header.html.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/template/en/default/bug/show-header.html.tmpl b/template/en/default/bug/show-header.html.tmpl
index c340def17..946b50abf 100644
--- a/template/en/default/bug/show-header.html.tmpl
+++ b/template/en/default/bug/show-header.html.tmpl
@@ -56,6 +56,12 @@
[% javascript FILTER none %]
[% END %]
[% END %]
++[% javascript = BLOCK %]
+ YAHOO.util.Event.onDOMReady(function() {
+ YAHOO.util.Event.addListener(window, 'keydown', keys_pressed, [% bug.id FILTER none %]);
+ YAHOO.util.Event.addListener(window, 'keyup', keys_released);
+ });
+[% END %]
[% style_urls = ['skins/standard/bug.css'] %]
[% doc_section = "using.html#anatomy-of-a-bug" %]
[% bodyclasses = ['bz_bug',