Comments (9)
@muwoo iohook.disableClickPropagation() 可以拦截🤣
from rubick.
@DogeVenci 尝试了一下,应该不是,因为目前只能通过iohook
来做鼠标事件的监听,原生右击事件要早于 ioHook
的 mousedown 事件,所以要使用 iohook
做监听,在右击一刹那弹出窗口,那就会闪烁。所以可能还是需要原生类似于浏览器那样可以 prevent default
就再好不过了。具体事件思路还在想
from rubick.
看utools的代码应该是调用了BrowserWindow.getNativeWindowHandle()拿到窗口句柄传给它的C++ Addons处理了
from rubick.
@DogeVenci 你哪来的 utools 代码🤣
from rubick.
@muwoo electron应用打包后都在resources/app.asar 用asar解开就看到 有点代码被压缩混淆还是能看得懂的 。
另外utools插件也是asar打包的 electron可以直接读取asar里面文件
from rubick.
Windows 上用API Monitor看到utools的C++ Addons调用SetWindowHookEx来设置全局鼠标钩子了,Mac上也应该是比较底层的拦截鼠标事件方法,linux只能用中键调用超级面板,暂时没找到跨平台的开源库能拦截鼠标事件的,这个功能留到以后再说吧。
from rubick.
@DogeVenci 不行的,这个是全局事件,而且触发机制比原生的晚。
from rubick.
目前只能用iohook
的 disableClickPropagation
来阻止默认右击事件弹窗,但是带来的的副作用是用户正常的右击操作也会被阻止,无法恢复。
如果不用长按右击唤起超级面板,那可以用按鼠标中键的方式,但是鼠标中键 macos 上通过触摸板无法触发。
所以如果有比较好的方案可以帮忙解决这个问题。
from rubick.
改为 Ctrl + W 快捷键呼起超级面板
from rubick.
Related Issues (20)
- 有些插件的详情介绍显示404,还有坏图 HOT 1
- 启动方式不支持ctrl双击设定 HOT 1
- 要花点时间处理一下360的预警
- 分离窗口可以增加快捷键吗
- 优化建议
- 同步报错
- 网页快开遇到的bug
- 希望可以原生支持win on arm
- 增加长按右键可弹出超级面板的功能 HOT 1
- 希望能增加常用插件,备忘录、todo等
- MAC设置不了快捷键 HOT 3
- 输入时无法输入空格 HOT 1
- 超级面板(系统)
- Ubuntu 20.04 启动后窗口空白
- 需要【翻译】功能 HOT 2
- 建议提高utools插件兼容性 HOT 2
- mac版本使用,分离窗口后程序坞能否独立显示。 HOT 1
- 无法定位程序输入点DiscardVirtualMemory于动态链接库KERNEL32.dll上。 HOT 1
- 希望列表支持上箭头,快速跳转到列表底部
- 请问这种情况,该如何修改插件?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubick.