• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Enter key

Status
Not open for further replies.

Reynl

Chevereto Member
hi all

how can i get rid of the Enter key on the Edit forms ? it is not possible to Write a normal text.
 
As far as I know, this is only possible by manually customizing the theme...



For version 3.xx I had once used my own modified theme but by constant updates were also there then again manual adaptations of need what then again to the fact led I for version 4.x no own theme will use.
 
thank you,

im not that experienced in php and java etc (im a c++,csharp,phyton,lua guy ) i need to search more, but today i was thinking about the inspector from the browser and found the event 🙂 around lines 672 for others near this line because i did already edit work. below code is responsible for the enter key. i just place that piece of code between /* */ in peafowl.js . moste easy i did the editwork in a custom theme,

/* $(document).on("keydown", "html", function (e) {
var $this = $(e.target),
event = e.originalEvent;
if (event.key === 'Escape') {
PF.fn.growl.close();
return;
}

var submit = event.key === 'Enter' && (event.ctrlKey || event.metaKey);
var $inputEnabledEnter = $this.is(":input.search, textarea") || $this.closest(".input-with-button").exists();
if(!$inputEnabledEnter && $this.is(":input") && event.key === 'Enter' && !submit) {
e.stopPropagation();
e.preventDefault();
return;
}
if($(PF.obj.modal.selectors.root).exists()) {
if(!submit && event.key === 'Enter' && $("[data-action=submit]", PF.obj.modal.selectors.root).exists() && !$this.is(".prevent-submit")) {
submit = true;
}
if(!submit) {
return;
}
$("[data-action=submit]", PF.obj.modal.selectors.root).trigger("click");
} else {
if(submit) {
var $form = $this.is(":input")
? $this.closest("form")
: $("form", ".form-content:visible").first();
$form.trigger("submit");
}
}
if(submit) {
PF.fn.keyFeedback.spawn(e);
}
});

// Trigger modal edit on hash #edit
// It must be placed after the event listener
if (window.location.hash && window.location.hash == "#edit") {
$("[data-modal=edit]")
.first()
.click();
}
*/
 
@Reynl Close enough...

Code:
        var submit = event.key === 'Enter' && (event.ctrlKey || event.metaKey);

To:

Code:
        var submit = event.key === 'Enter' && (event.ctrlKey || event.metaKey);
        if($this.is("textarea") && !submit) {
            e.stopPropagation();
            return;
        }
 
Status
Not open for further replies.
Back
Top