e123enitan 237 Posted October 22, 2015 Share Posted October 22, 2015 (edited) @@Angelblue05, I brought this topic to the main thread as discussed: The objective is to write a code if possible which could either enable or disable ContextMenu, as you agreed to, several of these functions have been made redundant since emby/kodi addon is place, this in my view make sense. My experience lately is that my house hold and other friends/families that share my server, when they accidentally pressed c on their key board will brought contextmenu, due to their limited knowledge of Kodi, thinks the functions still works, like fresh dB , which currently handle by Emby/kodi and edit title which ought to done at Emby server and several other issues crops up in the process of fiddling with context that caused hiccups in Kodi which I have to support, by having option to disabling ContextMenu would simplify things. I found this info http://kodi.wiki/view/Keymap where the key mapping are outline I noticed contextmenu as one of line hope this info will assist in further research and help to implement this request. appreciate your time and efforts and hope to this function in emby/kodi future build. Cheers! Edited October 22, 2015 by e123enitan 1 Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted October 23, 2015 Share Posted October 23, 2015 (edited) There is a Kodi Addon in the programs repository called "Keymap Editor" that does exactly this. You can easily disable and remap keys from the addon. I would suggest remapping to to something like alt-ctr-C so you are still able to access it if you need to but prevents others from accidentally accessing it. One of my favorite skins, Aeon MQ, has the option for a "Kiosk Mode" which locks down many of the settings like the context menu and changing of library views which is very family friendly. Edited October 23, 2015 by Jdiesel 1 Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 23, 2015 Author Share Posted October 23, 2015 There is a Kodi Addon in the programs repository called "Keymap Editor" that does exactly this. You can easily disable and remap keys from the addon. Nice thanks for sharing I will check this out. Cheers! Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 23, 2015 Author Share Posted October 23, 2015 I just installed the addon but it dont seen to respect any changes that i make to context menu any suggestions? Cheers Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted October 23, 2015 Share Posted October 23, 2015 Did you change Global-Navigation-context menu? After you make the change you need to back out to the first screen and hit Save. Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 23, 2015 Author Share Posted October 23, 2015 Yes, I did, but it seems the change is not respected when navigate to movies and hit C the contextmenu pop up, could be my fault or something else in my box which prevent the function to work. I shall look into it again tonight . Thanks for you support. Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 23, 2015 Author Share Posted October 23, 2015 (edited) @@Jdiesel, just curious, are your running windows or OpenElec, what type of remote are you using, USB/Keyboard? I am using USB/Keyboard, also in my quest for solution, I stumble on this https://github.com/xbmc/xbmc/blob/master/system/keymaps/keyboard.xml, I am not sure if this could be adapt to user specific.@Angelblue05, what is your thought, I think it would seem appropriate for users to write individual keymap xlm or use keymap editor addon instead of emby/kodi write?Thx Guys for your inputs Edited October 24, 2015 by e123enitan Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted October 23, 2015 Share Posted October 23, 2015 I'm running OpenElec and using a RC6 remote. The keyboard.xml file should be in your Userdata folder. I see that lines 72 and 74 both refer to the global context menu mapping meaning that both the "c" keystroke and the "menu" button on a WMC remote will bring up the context menu. You could try making a backup of the keyboard.xml and deleting lines 72 and 74 or see if there is second reference to the contex menu in the keymap editor addon. 1 Link to comment Share on other sites More sharing options...
dazed 27 Posted October 23, 2015 Share Posted October 23, 2015 This is how you can do it on windows, go here AppData\Roaming\Kodi\userdata\keymaps and open the keyboard.xml and add this <keymap> <global> <keyboard> <c mod="alt,ctrl,shift">ContextMenu</c> </keyboard> </global> <fullscreenvideo> <keyboard> <c>Playlist</c> </keyboard> </fullscreenvideo> </keymap> Now "ctrl,alt,shift + c" will bring up the context menu and just pressing "c" will bring up the playlist when a video is playing or your channel list if you are watching live tv 1 Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 23, 2015 Author Share Posted October 23, 2015 Awesome, I shall give it a try when I get home tonight, thanks for your input. Cheers! Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 23, 2015 Author Share Posted October 23, 2015 (edited) @ dazed, just tried your post as follows: -C:\Users\tom\AppData\Roaming\Kodi\userdata\keymaps, -Open file name gen with note pad -Copy the text into the file and saved, -restart Kodi -try c on key board, it pops up context -Sorry did not work, any other suggestions? Cheers Edited October 23, 2015 by e123enitan Link to comment Share on other sites More sharing options...
dazed 27 Posted October 23, 2015 Share Posted October 23, 2015 Try this <keymap> <global> <keyboard> <c mod="alt,ctrl,shift">ContextMenu</c> <c>noop</c> </keyboard> </global> <fullscreenvideo> <keyboard> <c>Playlist</c> </keyboard> </fullscreenvideo> </keymap> 1 Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 23, 2015 Author Share Posted October 23, 2015 (edited) Try this <keymap> <global> <keyboard> <c mod="alt,ctrl,shift">ContextMenu</c> <c>noop</c> </keyboard> </global> <fullscreenvideo> <keyboard> <c>Playlist</c> </keyboard> </fullscreenvideo> </keymap> Awasome this works like magic you have saved me heck of task, with pop and family. I am sure this would help others who may have similar issue or requirement. Cheers! Edited October 23, 2015 by e123enitan Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 23, 2015 Author Share Posted October 23, 2015 Awasome this works like magic you have saved me heck of task, with pop and family. I am sure this would help others who may have similar issue or requirement. Cheers! If I may ask, would this work for OpenElec as it does on windows? Link to comment Share on other sites More sharing options...
dazed 27 Posted October 24, 2015 Share Posted October 24, 2015 (edited) Yeah there's no reason it shouldn't, just get the correct file path from here for the your OS should be fine Edited October 24, 2015 by dazed Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 24, 2015 Author Share Posted October 24, 2015 @ dazed, can I bothered you with another request, along same line, on the movie or tv info screen, refresh and choose art seems to be redundant since the emby server and kodi/emby addon have taken control of these two functions. Therefore could it be possible to disable these by incorporating similar logic into context script. Thanks most appreciated Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 24, 2015 Author Share Posted October 24, 2015 (edited) Yeah there's no reason it shouldn't, just get the correct file path from here for the your OS should be fine Just tested on OpenElec it work find, this is cool Edited October 24, 2015 by e123enitan Link to comment Share on other sites More sharing options...
dazed 27 Posted October 24, 2015 Share Posted October 24, 2015 (edited) That seems more like a skin issue Normal info screen with the refresh and choose art You can set it to use extendedinfo by default in Titan Here the option in Titan Edited October 24, 2015 by dazed 1 Link to comment Share on other sites More sharing options...
dazed 27 Posted October 24, 2015 Share Posted October 24, 2015 Forgot to add that it you disable or uninstall Artwork Downloader it will stop that the Choose Art button from working in the first screenshot 1 Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 24, 2015 Author Share Posted October 24, 2015 That seems more like a skin issue Normal info screen with the refresh and choose art titan1.png You can set it to use extendedinfo by default in Titan titan2.png Here the option in Titan titan3.png Got U, I use Titan my self, it appears there is a setting in place to deactive these two functions, I would reach out to marcel if its possible to your logic to his skin, i think it would efficient as part of the sking package, thanks for your help again. Link to comment Share on other sites More sharing options...
dazed 27 Posted October 24, 2015 Share Posted October 24, 2015 Just had a look through the settings, if you Enable Kiosk-mode from the General skin settings it will stop you from being able to click the Choose Art and Refresh buttons 2 Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 24, 2015 Author Share Posted October 24, 2015 @ dazed, can I bothered you with another request, along same line, on the movie or tv info screen, refresh and choose art seems to be redundant since the emby server and kodi/emby addon have taken control of these two functions. Therefore could it be possible to disable these by incorporating similar logic into context script. Thanks most appreciated In Titan under general skin settings, enable Kiosk mode, resolve this request. Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 24, 2015 Author Share Posted October 24, 2015 In Titan under general skin settings, enable Kiosk mode, resolve this request. sorry I didn't ckeck your last thread Link to comment Share on other sites More sharing options...
e123enitan 237 Posted October 24, 2015 Author Share Posted October 24, 2015 (edited) Hi I just noticed that on Kodi main page, following keys B, E, H, J & K, when pressed tries to activate PVR Manager, wondering why several keys are preconfigured for same function, that seems odds, although I don’t have PVR add-on activated nor wish to have one, even if I wish to do so, I prefer to initialized this function through System>Addon etc. For my personal preference could you help write similar logic to disable these Keys at your convenient PLEASE. Edited October 24, 2015 by e123enitan Link to comment Share on other sites More sharing options...
dazed 27 Posted October 24, 2015 Share Posted October 24, 2015 Should just be something as simple as this <keymap> <global> <keyboard> <c mod="alt,ctrl,shift">ContextMenu</c> <c>noop</c> <c>noop</c> <e>noop</e> <h>noop</h> <j>noop</j> <k>noop</k> <b>noop</b> </keyboard> </global> <fullscreenvideo> <keyboard> <c>Playlist</c> </keyboard> </fullscreenvideo> </keymap> 1 Link to comment Share on other sites More sharing options...
Recommended Posts