DFW: don't block the "keyup" event, fixes toggling the checkbox in the Link dialog with the spacebar. Fixes #25934.

Built from https://develop.svn.wordpress.org/trunk@26649


git-svn-id: http://core.svn.wordpress.org/trunk@26539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2013-12-04 23:51:10 +00:00
parent b3bc78df8f
commit 1ae48b7644
2 changed files with 10 additions and 6 deletions

View File

@ -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

File diff suppressed because one or more lines are too long