[Python-checkins] r88905 - tracker/instances/python-dev/html/issue.item.js
ezio.melotti
python-checkins at python.org
Fri Oct 7 18:45:07 CEST 2011
Author: ezio.melotti
Date: Fri Oct 7 18:45:07 2011
New Revision: 88905
Log:
#422: do nothing if ctrl/alt/shift are pressed.
Modified:
tracker/instances/python-dev/html/issue.item.js
Modified: tracker/instances/python-dev/html/issue.item.js
==============================================================================
--- tracker/instances/python-dev/html/issue.item.js (original)
+++ tracker/instances/python-dev/html/issue.item.js Fri Oct 7 18:45:07 2011
@@ -77,6 +77,10 @@
// start from -1 so 'n' sends to the first message at the beginning
var current = -1;
$(document).keydown(function (event) {
+ // do nothing if ctrl/alt/shift are pressed
+ if (event.ctrlKey || event.altKey || event.shiftKey)
+ return true;
+
// disable the shortcuts while editing form elements (except ESC)
if (is_editing(event.target)) {
// ESC - unfocus the form
More information about the Python-checkins
mailing list