Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
136 lines (113 loc) · 10.7 KB

cp.apple.finalcutpro.main.KeywordEditor.md

File metadata and controls

136 lines (113 loc) · 10.7 KB

docs » cp.apple.finalcutpro.main.KeywordEditor


Keyword Editor Module.

API Overview

API Documentation

Constants

Signature cp.apple.finalcutpro.main.KeywordEditor.NUMBER_OF_SHORTCUTS -> number
Type Constant
Description The number of Keyword Keyboard shortcuts available.

Functions

Signature cp.apple.finalcutpro.main.KeywordEditor.matches(element) -> boolean
Type Function
Description Checks to see if an hs._asm.axuielement object matches a Keyword Editor window
Parameters
  • element - the hs._asm.axuielement object you want to check
Returns
  • true if a match otherwise false

Constructors

Signature cp.apple.finalcutpro.main.KeywordEditor(parent) -> KeywordEditor object
Type Constructor
Description Creates a new KeywordEditor object
Parameters
  • parent - The parent
Returns
  • A KeywordEditor object

Fields

Signature cp.apple.finalcutpro.main.KeywordEditor.isShowing <cp.prop: boolean; live?>
Type Field
Description Indicates whether or not the Keyword Editor is currently showing.
Signature cp.apple.finalcutpro.main.KeywordEditor.keyboardShortcuts <cp.ui.DisclosureWindow>
Type Field
Description The DisclosureTriangle that shows/hides the keyboard shortcuts configuration.
Signature cp.apple.finalcutpro.main.KeywordEditor.keywords <cp.ui.TextField>
Type Field
Description A TextField that contains the current keywords. The value is a table of string values for each individual keyword.
Signature cp.apple.finalcutpro.main.KeywordEditor.resetButton <cp.ui.Button>
Type Field
Description The Button that resets the current keywords to blank.
Signature cp.apple.finalcutpro.main.KeywordEditor.shortcutButtons <table of cp.ui.Button>
Type Field
Description The list of keyboard shortcut Buttons. The button for Cmd+1 is accessed via shortcutButtons[1], and so on.
Signature cp.apple.finalcutpro.main.KeywordEditor.shortcutFields <table of KeywordField>
Type Field
Description The list of keyboard shortcut KeywordFields. The field for Cmd+1 is accessed via shortcutFields[1], and so on.

Methods

Signature cp.apple.finalcutpro.main.KeywordEditor:doHide() -> cp.rx.go.Statement
Type Method
Description A Statement that hides the Keyword Editor.
Parameters
  • None
Returns
  • The Statement
Signature cp.apple.finalcutpro.main.KeywordEditor:doShow() -> cp.rx.go.Statement
Type Method
Description A Statement that shows the Keyword Editor.
Parameters
  • None
Returns
  • The Statement
Signature cp.apple.finalcutpro.main.KeywordEditor:hide() -> boolean
Type Method
Description Hides the Keyword Editor.
Parameters
  • None
Returns
  • KeywordEditor object
  • true if successful otherwise false
Signature cp.apple.finalcutpro.main.KeywordEditor:parent() -> table
Type Method
Description Returns the KeywordEditor's parent table
Parameters
  • None
Returns
  • The parent object as a table
Signature cp.apple.finalcutpro.main.KeywordEditor:show() -> boolean
Type Method
Description Shows the Keyword Editor.
Parameters
  • None
Returns
  • KeywordEditor object
  • true if successful otherwise false