KeyboardKit / KeyboardKitPro

KeyboardKit Pro helps you create custom keyboards for iOS and iPadOS.
https://keyboardkit.com
Other
110 stars 8 forks source link

fullDocumentContext table scan issue #4

Open evilutioner opened 1 year ago

evilutioner commented 1 year ago

Issue Description

When the cursor is outside a table, the text inside the table is not recognized. I created a table in notes:

|----------|----------| | The report provides new estimates of the chances of crossing the global warming level of 1.5°C in the next decades, and | | | The report states that without immediate, rapid, and large-scale reductions in greenhouse gas emissions, it will be impossible to limit global warming to 1.5°C or even 2°C.finds that unlessr The report says that without immediate and large reductions in greenhouse gas emissions, it will be impossible to limit global warming to 1.5°C or even 2°C. there are immediate, rapid and large-scale reductions in greenhouse gas emissions, limiting warming to close to 1.5°C or even 2°C will be beyond reach. | |

Steps to Reproduce

  1. Open the document containing a table with text inside it.
  2. Place the cursor outside the table.
  3. Try to call fullDocumentContext.

Actual Result

When trying to us, the API indicating that there is no text.

Expected Result

The system should recognize the text inside the table regardless of the cursor's position.

Environment

KeyboardKitPro 7.5.0

danielsaidi commented 1 year ago

Hi @evilutioner

Sorry to hear that this use-case isn't working. The full document context reading functionality is based on using the proxy's native functionality to move the cursor and read the text at the current position. If this is not possible using the native functionality, then reading the table will not work.

I will however naturally look into if this can be fixed.