Skip to content

Commit

Permalink
Update openlab-attributions.
Browse files Browse the repository at this point in the history
See #3476.
  • Loading branch information
boonebgorges committed Dec 30, 2024
1 parent afef197 commit fd675ca
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-rich-text'), 'version' => 'a676a83cd5404d03');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-rich-text'), 'version' => 'd7163c8435bc0f01');

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '8871f323176a2f29');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => 'e6bef97ebea77238');

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,21 @@ class AttributionModal extends Component {
input.focus();
}

// Prevent Block Editor's default up/down arrow key behavior.
// Prevent Block Editor's default up/down arrow as well as Enter key behavior.
const focusableElements = this.getFocusableElements();
focusableElements.forEach( ( element ) => {
element.addEventListener( 'keydown', ( event ) => {
if ( 40 !== event.keyCode && 38 !== event.keyCode ) {
return;
switch ( event.keyCode ) {
case 13:
event.preventDefault();
event.stopPropagation();
break;

case 40:
case 38:
event.preventDefault();
break;
}

event.preventDefault();
} )
} )
}, 100 )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: OpenLab Attributions
* Plugin URI: https://openlab.citytech.cuny.edu/
* Description: Add formatted attributions to post content.
* Version: 2.1.3
* Version: 2.1.4
* Requires at least: 5.4
* Requires PHP: 5.6
* Author: OpenLab
Expand Down
2 changes: 1 addition & 1 deletion wp-content/plugins/openlab-attributions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "openlab-attributions",
"description": "Add formatted attributions to post content.",
"version": "2.1.2",
"version": "2.1.4",
"author": "George Mamadashvili",
"license": "GPL-2.0+",
"main": "dist/js/block-editor.js",
Expand Down

0 comments on commit fd675ca

Please sign in to comment.