public static int getCtrlOrMetaModifier ( ) { final WebBrowser webBrowser = Page . getCurrent ( ) . getWebBrowser ( ) ; if ( webBrowser . isMacOSX ( ) ) { return ShortcutAction . ModifierKey . META ; } return ShortcutAction . ModifierKey . CTRL ; }
Returns the ctrl or meta modifier depending on the platform .