EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on November 09, 2017, 05:06:44 AM



Title: [solved] linkbutton detect if shift key down when pressed
Post by: devnull 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 ?!



Title: Re: linkbutton detect if shift key down when pressed
Post by: stworthy 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)
})


Title: [solved] Re: linkbutton detect if shift key down when pressed
Post by: devnull on November 09, 2017, 10:19:16 PM
OK, thanks, so as I thought, I can't get this from the linkbutton object.