Skip to content
New issue

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

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

Already on GitHub? # to your account

[Feature Request] Share to clipboard 分享至剪贴板 #201

Closed
happytommyl opened this issue Sep 20, 2023 · 7 comments
Closed

[Feature Request] Share to clipboard 分享至剪贴板 #201

happytommyl opened this issue Sep 20, 2023 · 7 comments

Comments

@happytommyl
Copy link

It would be convenient to be able to share video link to clipboard in one way or another.

It seems that the underlying framework (aka. borealis) does not have an obvious way to support text selection/copy-pasting. So I think the implementation would be platform specific.

@happytommyl
Copy link
Author

When building on dev branch, I encontered the following error:

error: 'ORIGINAL_WINDOW_HEIGHT' is not a member of 'brls::Application'

I think ORIGINAL_WINDOW_HEIGHT should be under namespace brls rather than brls::Application.

@xfangfang
Copy link
Owner

xfangfang commented Sep 20, 2023

@happytommyl
https://git-scm.com/book/en/v2/Git-Tools-Submodules#_switching_branches_2

# method 1
git checkout dev
git submodule update --init --recursive

# method 2
git checkout --r dev

@happytommyl
Copy link
Author

Ok, I can make it work on Windows. But I am not able to work on other platforms.

@xfangfang
Copy link
Owner

只提供单独某个或某几个平台的支持也是可以的,比如在borealis中获取设备电量:同时提供了是否支持获取电量的函数和具体的获取电量的函数。
对应的复制文本功能也可以这么做。

在前端,可以模仿官方界面来开发:

image

可以顺便把 空间、微博、微信、qq 这四个调用浏览器的功能也一并完成,同时根据平台是否支持复制链接来显示复制链接按钮

@happytommyl
Copy link
Author

好,我有时间研究下其他平台的接口

@happytommyl
Copy link
Author

How can I add mouse click listener to SVGImage ?

I tried to use registerClickAction on SVGImage, but it doesn't seem to work on a mouse click. Should I use registerAction instead? Or is it because SVGImage on its own can't get focus?

I'm now using brls::Button as a parent and add the SVGImage to the button view as a workaround, but the result is vey ugly.

@xfangfang
Copy link
Owner

Done by #277

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants