jQuery UI Widgets › Forums › Dialogs and Notifications › Window › capturing key press in JQXEditor of popupwindow
Tagged: esc in jqxeditor, gridcell edit popup, jQxEditor, keydown in jqxeditor, keypress in jqxeditor, popup editing, popup window
This topic contains 6 replies, has 3 voices, and was last updated by KAUSHAL 9 years, 11 months ago.
-
Author
-
Hello Support,
I am facing a problem while I am using a popup edit window with JQXEditor for updating value of a grid cell on cell click.
1. I need keyboard actions on my popupwindow,
While my window is focused my Esc button is working fine but as my cursor is in JQXEditor and now I am pressing Esc. It is not working and my objective of closing window of Esc button press event is not completed. In order to do this can you please suggest me some solution
here is the fiddle
http://jsfiddle.net/kaushal_varshney/km1cngzj/10/
and you can see I have placed a snippet at the bottom of this fiddle JS section for capturing the keydown event, that is not working at all
$(“#jqxEditor4InternalComment”).on(‘keydown’, function (event) {
alert(“key pressed”);
if (event.keyCode == 27) {
alert(“Escape”);
}
});please suggest me some solution as soon as possible
and,
2. As you can see in fiddle example while cell having some text inside it and after clicking this cell for edit, cell text displays into the editor of popupwindow but the cursor is at the beginning of text, It should at the end of text. what you say?
Hi KAUSHAL,
It’s not possible to handle Editor keys. Editor’s key events are handled only by the Editor.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hello Peter,
In order to do it what steps we should follow, I need window to be closed on Esc pressed while I am editing into the JQXEditor inside the popup window.
Thanks
Hi KAUSHAL,
This cannot happen. If the Editor is on focus, its keys are handled only by the Editor.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hello,
I assume it is not possible to capture the keystroke on a “textarea” using jqxEditor?
regards
Hi RenoRain-Chile,
The text area is used only for the initialization. After the initialization it’s not used at all and is not displayed i.e you can’t capture keystroke of hidden element.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hello Peter,
Is there any progress in respect to reply #65120 ?
-
AuthorPosts
You must be logged in to reply to this topic.