# Class: EmbeddedJS

## Annotations.Forms. EmbeddedJS

Contains functions for changing the default behavior of embedded PDF JavaScript

#### new EmbeddedJS()

### Methods

#### getFinalKeypressValue(globalEvent)

  Gets the keypress value of the active field after applying the latest keystroke

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `globalEvent` | object | The global event object in the embedded JS context

  ##### Returns:

  The current keypress value of the active field

  Type
    string

#### update(callback)

  Hook into the existing embedded JS functions and update their implementations

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `callback` | function | Function that is called with the embedded global object

#### Search results