getMetaKeyValue Method

Summary

Returns the Meta KeyboardEvent boolean instance value.

Syntax

TypeScript
    static getMetaKeyValue(code: KeyCode, e: KeyboardEvent): boolean; 

Parameters

code

The KeyCode for the event, being the meta key on mac.

e

The browser's Keyboard event.

Return Value

true if a Ctrl KeyboardEvent value is returned in the browser's Keyboard event, false otherwise.

Remarks

The Meta key in Mac is equivalent to the Ctrl key in other operating systems.

If the operating system is non-Mac and ctrl is true, this method returns the meta code as true. This would be used for ease of use so that keybindings do not have to be setup for each operating system.

Requirements

Target Platforms

See Also

StandardKeyboardEvent Object

StandardKeyboardEvent Members

Leadtools.Document.Editor Namespace

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Editor Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.