commit
edd8ea4a3b
|
@ -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({
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue