--- a/wp/wp-includes/js/tinymce/plugins/wpemoji/plugin.js Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/js/tinymce/plugins/wpemoji/plugin.js Tue Dec 15 13:49:49 2020 +0100
@@ -56,18 +56,22 @@
}
if ( isWin8 ) {
- // Windows 8+ emoji can be "typed" with the onscreen keyboard.
- // That triggers the normal keyboard events, but not the 'input' event.
- // Thankfully it sets keyCode 231 when the onscreen keyboard inserts any emoji.
+ /*
+ * Windows 8+ emoji can be "typed" with the onscreen keyboard.
+ * That triggers the normal keyboard events, but not the 'input' event.
+ * Thankfully it sets keyCode 231 when the onscreen keyboard inserts any emoji.
+ */
editor.on( 'keyup', function( event ) {
if ( event.keyCode === 231 ) {
parseNode( editor.selection.getNode() );
}
} );
} else if ( ! isWin ) {
- // In MacOS inserting emoji doesn't trigger the stanradr keyboard events.
- // Thankfully it triggers the 'input' event.
- // This works in Android and iOS as well.
+ /*
+ * In MacOS inserting emoji doesn't trigger the stanradr keyboard events.
+ * Thankfully it triggers the 'input' event.
+ * This works in Android and iOS as well.
+ */
editor.on( 'keydown keyup', function( event ) {
typing = ( event.type === 'keydown' );
} );