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:
parent
b3bc78df8f
commit
1ae48b7644
|
@ -558,16 +558,20 @@ PubSub.prototype.publish = function( topic, args ) {
|
||||||
fullscreen.off();
|
fullscreen.off();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( a && (61 == c || 107 == c || 187 == c) ) // +
|
if ( a && (61 == c || 107 == c || 187 == c) ) { // +
|
||||||
api.dfw_width(25);
|
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);
|
api.dfw_width(-25);
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
|
||||||
if ( a && 48 == c ) // 0
|
if ( a && 48 == c ) { // 0
|
||||||
api.dfw_width(0);
|
api.dfw_width(0);
|
||||||
|
e.preventDefault();
|
||||||
return false;
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// word count in Text mode
|
// word count in Text mode
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue