EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 21, 2024, 06:10:32 AM
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
>
[solved] linkbutton detect if shift key down when pressed
Pages: [
1
]
« previous
next »
Print
Author
Topic: [solved] linkbutton detect if shift key down when pressed (Read 4044 times)
devnull
Sr. Member
Posts: 431
[solved] linkbutton detect if shift key down when pressed
«
on:
November 09, 2017, 05:06:44 AM »
Hi;
How can I detect if the shiftkey (or any other key) was held down when the linkbutton was clicked ?
I thought that the click() event included the event but it does not ?!
«
Last Edit: November 09, 2017, 10:19:29 PM by devnull
»
Logged
-- Licensed User --
stworthy
Administrator
Hero Member
Posts: 3581
Re: linkbutton detect if shift key down when pressed
«
Reply #1 on:
November 09, 2017, 07:17:46 AM »
Bind the 'click' event on it and retrieve the 'shiftKey' of the event object.
Code:
$('#btn1').click(function(e){
console.log(e.shiftKey)
})
Logged
devnull
Sr. Member
Posts: 431
[solved] Re: linkbutton detect if shift key down when pressed
«
Reply #2 on:
November 09, 2017, 10:19:16 PM »
OK, thanks, so as I thought, I can't get this from the linkbutton object.
Logged
-- Licensed User --
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...