summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-04-18 21:27:48 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2014-04-18 21:27:48 +0200
commit406dcbbcd3b800582d79c6d8095b905367d0141a (patch)
tree743e46ed365c01a1ff8365086ffc420af92ef836
parentae77f29440ce3aec26e115502ea804d1533494e9 (diff)
downloadbugzilla-406dcbbcd3b800582d79c6d8095b905367d0141a.tar.gz
bugzilla-406dcbbcd3b800582d79c6d8095b905367d0141a.tar.xz
Backout bug 984980
-rw-r--r--js/field.js30
-rw-r--r--template/en/default/attachment/create.html.tmpl7
-rw-r--r--template/en/default/bug/show-header.html.tmpl6
3 files changed, 0 insertions, 43 deletions
diff --git a/js/field.js b/js/field.js
index b7e90ce1c..892c8669f 100644
--- a/js/field.js
+++ b/js/field.js
@@ -1083,33 +1083,3 @@ function updateRemainingTime() {
// if the remaining time is changed manually, update bz_remaining_time
bz_remaining_time = document.changeform.remaining_time.value;
}
-
-var keys = [];
-function keys_pressed(e, bug_id) {
- // Store an entry for every key pressed
- keys[e.keyCode] = true;
-
- // (Ctrl XOR cmd) + Shift + P
- if ((!keys[17] != !keys[224]) && keys[16] && keys[80]) {
- // Check if we are already in preview mode
- if (YAHOO.util.Dom.hasClass('comment_preview_tab', 'active_comment_tab')){
- show_comment_edit();
- document.getElementById('comment').focus();
- YAHOO.util.Event.preventDefault(e);
- }
-
- else {
- // Ensure that we switch to preview mode only if the textarea is in focus
- var comment = document.getElementById('comment');
- if (document.activeElement == comment) {
- show_comment_preview(bug_id);
- YAHOO.util.Event.preventDefault(e);
- }
- }
- }
-}
-
-function keys_released(e) {
- // Mark keys that were released
- keys[e.keyCode] = false;
-} \ No newline at end of file
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl
index e8193e319..18cc12640 100644
--- a/template/en/default/attachment/create.html.tmpl
+++ b/template/en/default/attachment/create.html.tmpl
@@ -11,13 +11,6 @@
[% header = BLOCK %]Create New Attachment for
[%+ "$terms.Bug $bug.bug_id" FILTER bug_link(bug) FILTER none %][% END %]
[% subheader = BLOCK %][% bug.short_desc FILTER html %][% 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 %]
-
[% PROCESS global/header.html.tmpl
title = title
diff --git a/template/en/default/bug/show-header.html.tmpl b/template/en/default/bug/show-header.html.tmpl
index 21237227e..c340def17 100644
--- a/template/en/default/bug/show-header.html.tmpl
+++ b/template/en/default/bug/show-header.html.tmpl
@@ -56,12 +56,6 @@
[% 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',