aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/static/js/keyboard_navigation.js
diff options
context:
space:
mode:
authorBrett Smith <brettcsmith@brettcsmith.org>2012-03-26 14:10:22 -0400
committerBrett Smith <brettcsmith@brettcsmith.org>2012-03-26 14:10:22 -0400
commitc16b8196631e5b1c4cbe618a9af74f5455fe861c (patch)
tree5a94548275636849dd8c771de6b5fe854c0f2098 /mediagoblin/static/js/keyboard_navigation.js
parent28f364bd6d488955952aebe86033e5ba148da2fb (diff)
parent7ccf41818581743c2e16935cd7308ad3d6694149 (diff)
downloadmediagoblin-c16b8196631e5b1c4cbe618a9af74f5455fe861c.tar.lz
mediagoblin-c16b8196631e5b1c4cbe618a9af74f5455fe861c.tar.xz
mediagoblin-c16b8196631e5b1c4cbe618a9af74f5455fe861c.zip
Merge remote branch 'origin/master' into bug261-resized-filenames
This merge involved moving the new FilenameBuilder class to processing/__init__.py, and putting the comment deletion tests back into test_submission.py using the refactored functions.
Diffstat (limited to 'mediagoblin/static/js/keyboard_navigation.js')
-rw-r--r--mediagoblin/static/js/keyboard_navigation.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/mediagoblin/static/js/keyboard_navigation.js b/mediagoblin/static/js/keyboard_navigation.js
index d4039a3c..7401e4d8 100644
--- a/mediagoblin/static/js/keyboard_navigation.js
+++ b/mediagoblin/static/js/keyboard_navigation.js
@@ -16,6 +16,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+/* It must be wrapped into a function and you also cannot use
+ * $(':not(textarea, input)') because of some reason. */
+
+$(document).ready(function(){
+ $('textarea, input').keydown(function(event){
+ event.stopPropagation();
+ });
+});
+
$(document).keydown(function(event){
switch(event.which){
case 37:
@@ -30,4 +39,3 @@ $(document).keydown(function(event){
break;
}
});
-