From 02486b34795cf597c2393a9150caf81f5836beb1 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 31 Dec 2018 17:16:45 -0500 Subject: [PATCH] awful.key: Add a has_root_binding property and :trigger() method --- lib/awful/key.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/awful/key.lua b/lib/awful/key.lua index 6ebc42ab2..e11e696b3 100644 --- a/lib/awful/key.lua +++ b/lib/awful/key.lua @@ -124,13 +124,17 @@ function key:trigger() end end +function key:get_has_root_binding() + return capi.root.has_key(self) +end + local function index_handler(self, k) if key["get_"..k] then return key["get_"..k](self) end if type(key[k]) == "function" then - return key[k](self) + return key[k] end local data = reverse_map[self]