From 2d254241c7f746518395fdc99ea34ed43989c1dd Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 4 Dec 2013 23:50:05 +0000 Subject: [PATCH] DFW: don't block the "keyup" event, fixes toggling the checkbox in the Link dialog with the spacebar. Fixes #25934. git-svn-id: https://develop.svn.wordpress.org/trunk@26649 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/wp-fullscreen.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/js/wp-fullscreen.js b/src/wp-admin/js/wp-fullscreen.js index 4746b286a2..fa17ce4409 100644 --- a/src/wp-admin/js/wp-fullscreen.js +++ b/src/wp-admin/js/wp-fullscreen.js @@ -558,16 +558,20 @@ PubSub.prototype.publish = function( topic, args ) { fullscreen.off(); } - if ( a && (61 == c || 107 == c || 187 == c) ) // + + if ( a && (61 == c || 107 == c || 187 == c) ) { // + api.dfw_width(25); + e.preventDefault(); + } - if ( a && (45 == c || 109 == c || 189 == c) ) // - + if ( a && (45 == c || 109 == c || 189 == c) ) { // - api.dfw_width(-25); + e.preventDefault(); + } - if ( a && 48 == c ) // 0 + if ( a && 48 == c ) { // 0 api.dfw_width(0); - - return false; + e.preventDefault(); + } }); // word count in Text mode