404 not found
Tofloor
poster avatar
pikachuhy
deepin
2018-06-14 04:07
Author
本帖最后由 pikachuhy 于 2018-6-15 09:29 编辑

404. That’s an error.
Reply Favorite View the author
Comments
poster avatar
admin
2018-06-14 22:36
楼主可以在最后搞完后联系我们,我们可以把这个打包更新一下放进仓库和商店啊
All Replies
avatar
135******79
deepin
2018-06-14 05:26
#1
全局快捷键的话,我是拿老王写的那个类直接用,只是程序需要在前台运行,你可以研究一下怎么弄守护进程。
获取每个应用的快捷键的话我也很好奇要怎么做,每个应用的快捷键可是不同的,而且也没有在系统上进行注册之类的操作。
Reply View the author
avatar
pikachuhy
deepin
2018-06-14 05:35
#2
https://bbs.deepin.org/post/158096
全局快捷键的话,我是拿老王写的那个类直接用,只是程序需要在前台运行,你可以研究一下怎么弄守护进程。
...

是的,老王那个类的确很好用
Reply View the author
avatar
pikachuhy
deepin
2018-06-14 05:36
#3
https://bbs.deepin.org/post/158096
全局快捷键的话,我是拿老王写的那个类直接用,只是程序需要在前台运行,你可以研究一下怎么弄守护进程。
...

但是,仍然没有解决我长按监听的问题
Reply View the author
avatar
许自强
deepin
2018-06-14 07:33
#4
https://bbs.deepin.org/post/158096
但是,仍然没有解决我长按监听的问题

不是有pressed事件和release事件吗.结合一下就可以实现长按了啊,这个super键和打开启动器冲突了,也需要解决一下
Reply View the author
avatar
justforlxz
deepin
2018-06-14 16:08
#5
shortcut view是需要配置文件的,现在全家桶的快捷键帮助提示都是调用的这个。
Reply View the author
avatar
135******79
deepin
2018-06-14 16:55
#6
https://bbs.deepin.org/post/158096
不是有pressed事件和release事件吗.结合一下就可以实现长按了啊,这个super键和打开启动器冲突了,也需要解 ...

我还拿 pressed 事件和 release 实现 组合快捷键了,如 ctrl + o 这样的
Reply View the author
avatar
pikachuhy
deepin
2018-06-14 17:33
#7
https://bbs.deepin.org/post/158096
不是有pressed事件和release事件吗.结合一下就可以实现长按了啊,这个super键和打开启动器冲突了,也需要解 ...

我在考虑要不要用ctrl,感觉平时用ctrl+什么用得比super+什么更多
Reply View the author
avatar
pikachuhy
deepin
2018-06-14 17:41
#8
https://bbs.deepin.org/post/158096
不是有pressed事件和release事件吗.结合一下就可以实现长按了啊,这个super键和打开启动器冲突了,也需要解 ...

长按我实现了,改了老王不少的代码。
代码在这:
https://github.com/PikachuHy/QtC ... ongPressManager.cpp
https://github.com/PikachuHy/QtC ... op/EventMonitor.cpp
xrecord居然头文件与Qt冲突,还好C++比较魔法,可以绕过去
Reply View the author
avatar
pikachuhy
deepin
2018-06-14 17:42
#9
https://bbs.deepin.org/post/158096
shortcut view是需要配置文件的,现在全家桶的快捷键帮助提示都是调用的这个。
...

配置文件在哪儿?
快捷键帮助提示怎么弄的?
Reply View the author
avatar
shihua
deepin
2018-06-14 19:21
#10
本帖最后由 shihua 于 2018-6-14 11:24 编辑

这个呢其实是没有配置文件的 deepin-shorcut-view是一个独立的进程. 你可以通过当前进程来唤醒它. 在唤醒它的时候传递过去 指定格式的json就好啦.
具体呢参考这里:
如何构造这个json:  https://github.com/linuxdeepin/dde-file-manager/blob/develop2.0/dde-file-manager-lib/shutil/shortcut.cpp
如何传递json给deepin-shortcut-viewer:  https://github.com/linuxdeepin/dde-file-manager/blob/develop2.0/dde-file-manager-lib/controllers/appcontroller.cpp#L616
触发这个快捷键统一设置为: ctrl + shift +/

Reply View the author
Comments
hyikesong
2018-06-14 20:28
很给力啊
avatar
shihua
deepin
2018-06-14 19:57
#11
这是实现这个组合快捷键的方式: https://github.com/linuxdeepin/dde-file-manager/blob/develop2.0/dde-file-manager-lib/views/dfilemanagerwindow.cpp#L226
Reply View the author
avatar
pikachuhy
deepin
2018-06-14 20:10
#12
https://bbs.deepin.org/post/158096
这个呢其实是没有配置文件的 deepin-shorcut-view是一个独立的进程. 你可以通过当前进程来唤醒它. 在唤醒它 ...

非常感谢
Reply View the author
avatar
许自强
deepin
2018-06-14 20:33
#13
https://bbs.deepin.org/post/158096
这个呢其实是没有配置文件的 deepin-shorcut-view是一个独立的进程. 你可以通过当前进程来唤醒它. 在唤醒它 ...

看来这些deepin都设计好了,就看应用开发者的了
Reply View the author
avatar
wtz
deepin
2018-06-18 02:18
#14
楼主被请喝茶了??
Reply View the author
avatar
许自强
deepin
2018-06-18 16:02
#15
https://bbs.deepin.org/post/158096
楼主被请喝茶了??

不像
Reply View the author