Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4215 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hey guys

 

Trying to implement some keyboard shortcuts into my database. Right now, for example, I'm trying to give the user a keyboard shortcut to close the active window and perform the other necessary scripts that I have run when the user clicks the "Close Window" button.

 

I've managed to get the window to close after the ESC key is pressed:

Set Variable [$code; Value:Code (Get(TriggerKeystroke))]
If [$code = 27]
Close Window
End If

However, I don't like that it's just the ESC (27) key on it's own. The ESC key is useful when the script is stuck in a loop, among other things. I am looking to use the key combinations Ctrl+Q (or Command+Q for Apple) to execute the "Close Window" script sequence.

 

Is there a way to "capture" a key combination using a similar script as above?

This topic is 4215 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.