keyPressed property

PdfJavaScriptAction? keyPressed

Gets or sets the JavaScript action to be performed when the user types a keystroke

Implementation

PdfJavaScriptAction? get keyPressed => _keyPressed;
void keyPressed=(PdfJavaScriptAction? value)

Implementation

set keyPressed(PdfJavaScriptAction? value) {
  if (value != null && _keyPressed != value) {
    _keyPressed = value;
    _helper.dictionary!.setProperty(PdfDictionaryProperties.k, _keyPressed);
    _helper.changed = true;
  }
}