Kodi Community Forum

Full Version: A very simple add-on, that couldn't be closed. How?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.
I want to make a very simple video add-on, that will show hardcodded list of videos and this plugin I plan to start with autoexec.py on my TV-Box, with Libreelec.
My parents are too old and I should to make a very simple video choosing interface, that shouldn't be closed. For example, my parents could press some key accidentally and they could close add-on in Kodi.
How to force KODI to don't allow to close interface of add-on, even if pressed Esc on keyboard or right mouse button?
Currently, my mod is just a fork of https://github.com/romanvm/plugin.video.example with 90% similar code.
Thank you for reading this, for your time.
Thread moved to addon development
Hi
What you could do is build your own Window and override the onaction method https://codedocs.xyz/xbmc/xbmc/group__py...002b029c75

However be aware that you might get stuck in the window if you are catching the nav back action.

AFAIK there is no other way to hook into actions
Ohhhh, thank you, that's what I need!