Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何响应键盘事件 #409

Open
NetFlareSuperAdmin opened this issue Dec 22, 2024 · 0 comments
Open

如何响应键盘事件 #409

NetFlareSuperAdmin opened this issue Dec 22, 2024 · 0 comments

Comments

@NetFlareSuperAdmin
Copy link

使用的是哪个库:@vue-office/pdf
使用的环境:Web/PC, Chrome 129

我想知道如何响应键盘事件?尝试了一下代码:
<vue-office-pdf :src="url" @rendered="renderedHandler" @error="errorHandler" v-on:click.stop.prevent="onClick" @keyup="onKeyup" />
但是 onKeyup 没有被调用。

我为 vue-office-pdf 组件设置了一个全屏状态,当处于该状态是,点击预览会关闭该预览,属正常行为。在全屏状态下,当用户按 ESC 键时,要关闭该预览,该如何实现?

谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant