Skip to content

Commit

Permalink
add event_state_mask and symbols to binding info
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Crisci committed May 23, 2019
1 parent 76c64fe commit 262246d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion i3ipc/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,13 @@ def __init__(self, data):
class BindingInfo(object):
def __init__(self, data):
self.command = data['command']
self.mods = data['mods']
# not included in sway
self.mods = data.get('mods', [])
self.event_state_mask = data.get('event_state_mask', [])
self.input_code = data['input_code']
self.symbol = data['symbol']
# sway only
self.symbols = data.get('symbols', [])
self.input_type = data['input_type']


Expand Down

0 comments on commit 262246d

Please sign in to comment.