页次: 1
快捷键捕获应该是由/org/virt-manager/virt-manager/console/grab-keys控制的, 值默认是空, 请问禁用快捷键捕获应该是什么值呢? (我试了好几种都不管用
Jack77793 (jack77793@foxmail.com)
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
离线
https://github.com/virt-manager/virt-ma … /config.py
# Keys preferences
def get_keys_combination(self):
ret = self.conf.get("/console/grab-keys")
if not ret:
# Left Control + Left Alt
return "65507,65513"
return ret
源码逻辑是不设置值,默认为Left Control + Left Alt
Edit->Preferences->Console->Grab Keys setting里可以设置,要不借助GUI设置改成其它组合键?
具体的键盘对应码参考TK的文档:
https://www.tcl.tk/man/tcl8.6.13/TkCmd/keysyms.html
最近编辑记录 Watermelon.Rei (2023-01-05 10:17:14)
离线
https://github.com/virt-manager/virt-ma … /config.py
# Keys preferences def get_keys_combination(self): ret = self.conf.get("/console/grab-keys") if not ret: # Left Control + Left Alt return "65507,65513" return ret
源码逻辑是不设置值,默认为Left Control + Left Alt
Edit->Preferences->Console->Grab Keys setting里可以设置,要不借助GUI设置改成其它组合键?
具体的键盘对应码参考TK的文档:
https://www.tcl.tk/man/tcl8.6.13/TkCmd/keysyms.html
我指的不是这个, 而是ctrl(还是enter?记不清了)+esc更改的快捷键捕捉
至于这个设置值是dconf的键值
Jack77793 (jack77793@foxmail.com)
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
离线
页次: 1