Merge pull request #1711 from psychon/fix-ldoc

Fix ldoc
This commit is contained in:
Daniel Hahler 2017-04-09 22:11:36 +02:00 committed by GitHub
commit edd8ea4a3b
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,11 @@
---------------------------------------------------------------------------
--- Firefox hotkeys for awful.hotkeys_widget
--
-- @author Jonathan <jonathan@tinypulse.com>
-- @copyright 2017 Jonathan
-- @module awful.hotkeys_popup.keys.firefox
---------------------------------------------------------------------------
local hotkeys_popup = require("awful.hotkeys_popup.widget")
local fire_rule = { class = { "Firefox" } }
for group_name, group_data in pairs({

View File

@ -556,8 +556,8 @@ function widget.new(args)
end
--- Add hotkey group rules for third-party applications.
-- @tparam group hotkeys group name,
-- @tparam data rule data for the group
-- @tparam string group hotkeys group name,
-- @tparam table data rule data for the group
-- see `awful.hotkeys_popup.key.vim` as an example.
function widget_instance:add_group_rules(group, data)
self.group_rules[group] = data
@ -590,11 +590,11 @@ end
--- Add hotkey group rules for third-party applications
-- (default widget instance will be used).
-- @tparam string hotkeys group name,
-- @tparam table rule data for the group
-- @tparam string group rule group name,
-- @tparam table data rule data for the group
-- see `awful.hotkeys_popup.key.vim` as an example.
function widget.add_group_rules(...)
return get_default_widget():add_group_rules(...)
function widget.add_group_rules(group, data)
return get_default_widget():add_group_rules(group, data)
end
return widget