简体   繁体   English

如何为Wireshark Lua插件添加键盘快捷键(加速器)?

[英]How to add keyboard shortcut (accelerator) for wireshark lua plugin?

I have created a wireshark plugin using lua, which currently shows up under Tools->my_plugin 我使用lua创建了一个wirehark插件,当前显示在Tools-> my_plugin下

I want to know, if there is a way by which I can assign a keyboard shortcut to it, so that users dont have to go through menu bar. 我想知道,是否可以通过某种方式为其分配键盘快捷键,从而使用户不必浏览菜单栏。

No, there isn't a way to do that currently. 不,目前没有办法做到这一点。 You could submit a patch to allow register_menu to take a shortcut key. 您可以提交补丁,以使register_menu可以使用快捷键。

For others, documentation of register menu : https://wiki.wireshark.org/LuaAPI/GUI#register_menu.28name.2C_action_.5B.2Cgroup.5D.29 对于其他人, register menu文档: https : //wiki.wireshark.org/LuaAPI/GUI#register_menu.28name.2C_action_.5B.2Cgroup.5D.29

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM