aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Keys.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Keys.hh b/src/Keys.hh
index 0365cf8..c075d38 100644
--- a/src/Keys.hh
+++ b/src/Keys.hh
@@ -111,6 +111,8 @@ private:
111 111
112 t_key *find(int type_, unsigned int mod_, unsigned int key_, 112 t_key *find(int type_, unsigned int mod_, unsigned int key_,
113 int context_) { 113 int context_) {
114 // t_key ctor sets context_ of 0 to GLOBAL, so we must here too
115 context_ = context_ ? context_ : GLOBAL;
114 for (size_t i = 0; i < keylist.size(); i++) { 116 for (size_t i = 0; i < keylist.size(); i++) {
115 if (keylist[i]->type == type_ && keylist[i]->key == key_ && 117 if (keylist[i]->type == type_ && keylist[i]->key == key_ &&
116 (keylist[i]->context & context_) > 0 && keylist[i]->mod == 118 (keylist[i]->context & context_) > 0 && keylist[i]->mod ==