EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 16, 2025, 11:52:25 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Closing Modal Window with Escape Key
Pages: [
1
]
« previous
next »
Print
Author
Topic: Closing Modal Window with Escape Key (Read 9118 times)
hbento
Newbie
Posts: 4
Closing Modal Window with Escape Key
«
on:
July 22, 2015, 06:02:30 AM »
Hi
How to setup the usual behaviour for the Escape Key when a modal easyui-window is opened?
I know the standard way, but is there any "data-option" that helps us setting the key for easyui-linkbutton? Like escape key or F1?
Logged
yamilbracho
Jr. Member
Posts: 64
Re: Closing Modal Window with Escape Key
«
Reply #1 on:
July 22, 2015, 07:31:13 PM »
Maybe use bind of a keyboard event (keyup, keypress, etc), for example
$('#target').bind('keyup', function(event) {
//event.keycode is the ascii code for the pressed key, so 27 is escape key...
});
HTH,
Yamil
Logged
hbento
Newbie
Posts: 4
Re: Closing Modal Window with Escape Key
«
Reply #2 on:
July 27, 2015, 08:27:20 AM »
Thanks
That I knew.
I believe it should there be some property more "easyui style".
Thanks Anyway
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...