You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importapiimportglobalPluginHandlerimportscriptHandlerimportuifrom . importkeyboardclassGlobalPlugin(globalPluginHandler.GlobalPlugin):
@scriptHandler.script(description=_("Enter the contents of the clipboard from the keyboard."),gesture="kb:NVDA+V" )defscript_enterFromClipboard(self, gesture):
text=api.getClipData()
ifisinstance(text, str):
keyboard.write(text)
else:
ui.message(_("The data in the clipboard is not text."))
而且这个库是跨平台的,需要精简。所以考虑参考此库的实现,配合一些 NVDA 本身的函数。
此功能优先度不高,我考虑研究一段时间来实现它。
The text was updated successfully, but these errors were encountered:
一些编辑框限制了粘贴行为,但文本可以通过键盘方式输入。
我之前想直接利用 https://github.com/boppreh/keyboard 库中的 write 函数实现此功能,但也许因为它和 NVDA 的键盘处理程序有冲突,所以无法实现。
而且这个库是跨平台的,需要精简。所以考虑参考此库的实现,配合一些 NVDA 本身的函数。
此功能优先度不高,我考虑研究一段时间来实现它。
The text was updated successfully, but these errors were encountered: