Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi,

 

Questions.

 

I have a customer that want to close the current window using the command key and some other letter key.

 

I know the "Command Key" and "W" closes the app.  And I will need advise the customer on certain keys.

 

However the issue is I can not see the "Command Key" when using the "get ( ActiveModiefierKeys )

 

I can see the "Shift" key as 1 but I can not see the "command" key as 16 ( mac ) according to "Filemaker's" Get(ActiveModifierKeys) instruction page.

 

I've pasted the entire thing, so can someone please explain why I can not get the 16 ??? in my message box

 

Message box:

 

"Modifier Key :"&Get(ActiveModifierkeys)

"Key : "&Get(TriggerKeystroke)

 

The above message box will display 1 and z if I hold down the "Shift" and select the "z" key.

 

However, if I hold down the "command" key ( mac ) and select the letter "z" nothing happens.

 

Can some please explain why.

 

Format 
Parameters 
Data type returned 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
 •
 •
Command (Mac OS) = 16
 

 

 

However, if I hold down the "command" key ( mac ) and select the letter "z" nothing happens.

 

Well something does happen, because that's the shortcut for the Undo command. However, if you have a script triggered On LayoutKeystroke or OnObjectKeystroke, then pressing Command+z will not activate the trigger.

  • Author

Comment,

 

Thank you.

 

I looked at the menu just to make sure too, obviously not good enough so I google this "Command" plus a "Key" thing and found that every key that could be used is being used.

 

So I created a custom menu set.  A whole lot easier that's for sure.

every key that could be used is being used.

 

Filemaker has set aside the Command-1 through Command-0 shortcuts for the purpose of running your own scripts.

 

 

However, if we step away from the declared topic of Get ( ActiveModifierKeys ) and examine the original problem: why can't you simply use the built-in Command-W shortcut? Contrary to what you say, it does not close the application; it closes the current window. If the current window is the last window of the file, then closing it will also close the file - but that will be true no matter how you close that window.

Well I just did a search for caps lock and ended up here so I hope this is okay to ask.

 

I want to remind people if caps lock is on.  I would be happy using calc or trigger or whatever works best.  Maybe conditional formatting?  Mostly I want to tell them when they go to their data entry layout but ideally if the put caps lock on I want them to get a big red neon sign. :laugh2:

Determining that Caps Lock is on is easy using =

Mod ( Div ( Get ( ActiveModifierKeys ) ; 2 ) ; 2 )

How and where you want to use this is not so clear. Conditional formatting would work fine, provided there is something that would refresh the screen when Caps Lock is turned on or off. Note that turning Caps Lock on/off is not a keystroke triggering event.

Thank you Comment.  This is when someone begins to type into a field I want to pop up message telling them their caps lock is on.  I am not where I can try this but I will and I am sure it will work.  Things from you always do.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.