Skip to content

Commit

Permalink
Merge pull request #15878 from craftcms/bugfix/15876-source-selection…
Browse files Browse the repository at this point in the history
…-via-keyboard

fixes error that prevents source from being selected via keyboard
  • Loading branch information
brandonkelly authored Oct 10, 2024
2 parents 9076f0b + 62efeec commit 68557cb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fixed a styling issue with Color field inputs. ([#15868](https://github.com/craftcms/cms/issues/15868))
- Fixed a deprecation error. ([#15873](https://github.com/craftcms/cms/issues/15873))
- Fixed a bug where element sources weren’t keyboard-selectable. ([#15876](https://github.com/craftcms/cms/issues/15876))

## 5.4.7.1 - 2024-10-09

Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/web/assets/cp/src/js/BaseElementIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -3860,8 +3860,8 @@ const SourceNav = Garnish.Base.extend(

if (
(keyCode === Garnish.RETURN_KEY || keyCode === Garnish.SPACE_KEY) &&
!ev.shiftKey &&
!Garnish.isCtrlKeyPressed(ev)
!event.shiftKey &&
!Garnish.isCtrlKeyPressed(event)
) {
event.preventDefault();
this.selectItem(event.target);
Expand Down

0 comments on commit 68557cb

Please sign in to comment.