source/lib/VBConnPanel.js
// Find in page context menu command or CTRL/F key (toggle)

Find in page context menu command or CTRL/F key (toggle)
Find in page context menu command or CTRL / F key ( toggle )
findInPage() {
    if (this.findContainer.style.display === 'table-row') {
      this.doFindClose()
    }
    else {
      let isSelected = false
      let selectedText = window.getSelection().toString()
      if (selectedText.match(/\S/)) {
        this.findTextInput.value = selectedText
        isSelected = true
      }
      this.findContainer.style.display = 'table-row'
      this.findTextInput.focus()
      if (isSelected) {
        this.doFind()
      }
    }
  }
findInPage ( ) { if ( this . findContainer . style . display === 'table-row' ) { this . doFindClose ( ) } else { let isSelected = false let selectedText = window . getSelection ( ) . toString ( ) if ( selectedText . match ( / \S / ) ) { this . findTextInput . value = selectedText isSelected = true } this . findContainer . style . display = 'table-row' this . findTextInput . focus ( ) if ( isSelected ) { this . doFind ( ) } } }
Find in page context menu command or CTRL/F key (toggle)
Find in page context menu command or CTRL / F key ( toggle )
// Find panel on display -- close it
 // Find panel not on display -- display it
 // If the user has selected some text, put it in the find box
