You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// UILayerManager.jstriggerShortcut: function(ev,layerIndex){if(typeoflayerIndex==='undefined'){layerIndex=this.layer;}constlayer=this.layers[layerIndex];constshortcut=layer.shortcuts.find((s)=>s.shortcut.keyCode===ev.keyCode&&s.shortcut.ctrl===Garnish.isCtrlKeyPressed(ev)&&s.shortcut.shift===ev.shiftKey&&s.shortcut.alt===ev.altKey);if(shortcut){ev.preventDefault();shortcut.callback(ev);// <-- `.bubble` is causing the error}elseif(layer.options.bubble&&layerIndex>0){this.triggerShortcut(ev,layerIndex-1);}},
Steps to reproduce
Open the Craft CMS CP panel (any page)
Open dev-tools
Press any key
See the error in the console
Expected behavior
There should be no errors when pressing keys.
Actual behavior
There are errors when pressing keys.
Craft CMS version
4.5.1
PHP version
8.1.13
Operating system and version
MacOS 13.4.1
Database type and version
MySQL 5.7.39
Image driver and version
GD 2.1.0
Installed plugins and versions
No plugins
The text was updated successfully, but these errors were encountered:
What happened?
Description
Whenever I press any key at all (alphanumeric, modifier, esc, doesn't matter), I get a console error:
This seems to be happening in the UILayerManager.js file
Steps to reproduce
Expected behavior
There should be no errors when pressing keys.
Actual behavior
There are errors when pressing keys.
Craft CMS version
4.5.1
PHP version
8.1.13
Operating system and version
MacOS 13.4.1
Database type and version
MySQL 5.7.39
Image driver and version
GD 2.1.0
Installed plugins and versions
The text was updated successfully, but these errors were encountered: