mcbrewster opened a new pull request #7787: Web-console: Add run keyboard short 
cut to sql-control
URL: https://github.com/apache/incubator-druid/pull/7787
 
 
   <img width="168" alt="Screen Shot 2019-05-28 at 6 01 08 PM" 
src="https://user-images.githubusercontent.com/37322608/58521826-a837e100-8172-11e9-9537-d6e66393647c.png";>
   
   Pressing control+enter will now have the same function as pressing run with 
limit. 
   
   This is achieved by setting both an onkeydown and onkeyup event listener. 
Onkeydown the handler checks if the key is either enter or control, that 
information will be recorded in the state, and removed from the state on key 
up. When the second key is pressed the Onkeydown handler then checks to see if 
it is the right combination of control and enter being pressed, if that is true 
onRunClick is called. 
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to