yetone/get-selected-text

The get-selected-text function doesn't work when called for the first time

Opened this issue · 0 comments

image

demo

https://github.com/Mia-Zhang-Forever/enigo_demo/tree/get-text

  • use the get-text branch
  • run it with: pnpm tauri dev

it will open a board, you can type in text in the board and use a shortcut to trigger the selection:
the shortcut is hardcoded: ctrl+cmd+,

When "get-selected-text" is called for the first time, it cannot retrieve the content.