2021-10-07, 19:35
(2021-05-19, 13:00)AvanOsch Wrote: I know this is kinda late, but maybe you can use the "onAction" callback:It doesn't work in such way, but info is very useful. To capture keypress at onAction callback one should:
Kodi Development page
Example:
python:def onAction(self, action):
log('Received Action: ' + str(action.getId()) + '\n', xbmc.LOGDEBUG)
if action in (ACTION_PREVIOUS_MENU, ACTION_BACKSPACE, ACTION_NAV_BACK):
# Do "Back" action
if action in (ACTION_ENTER_KEY, ACTION_ENTER):
# Do "Enter" action
1. Find id number for appropriate getId from here
2. Edit onAction for something like
python:def onAction(self,action):
# capture idNumber found from above
if action.getId == idNumber:
# do whatever You need for given keypress
else:
# do something else