feat: add volume keys for page turning, closes #471 (#982)

This commit is contained in:
Huang Xin 2025-04-28 18:36:24 +08:00 committed by GitHub
parent a424ae8b15
commit 4275508ccd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 692 additions and 174 deletions

View file

@ -65,3 +65,11 @@ pub(crate) async fn get_sys_fonts_list<R: Runtime>(
) -> Result<GetSysFontsListResponse> {
app.native_bridge().get_sys_fonts_list()
}
#[command]
pub(crate) async fn intercept_keys<R: Runtime>(
app: AppHandle<R>,
payload: InterceptKeysRequest,
) -> Result<()> {
app.native_bridge().intercept_keys(payload)
}