mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 12:29:04 +08:00
Fixed Enter keyboard shortcut for layout elements that are not of type "Content". Fixes #5749.
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element.type == "Content") { // This is a content element.
|
if (!!element.hasEditor) { // This element has an editor dialog.
|
||||||
if (!e.ctrlKey && !e.shiftKey && !e.altKey && e.which == 13) { // Enter
|
if (!e.ctrlKey && !e.shiftKey && !e.altKey && e.which == 13) { // Enter
|
||||||
$element.find(".layout-panel-action-edit").first().click();
|
$element.find(".layout-panel-action-edit").first().click();
|
||||||
handled = true;
|
handled = true;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user