Setting up grid layout for the hot keys, one could find this code in the War3Preference.txt file:
[Inventory Hotkeys 0]
HeroOnly=0
Hotkey=84
MetaKeyState=0
QuickCast=0
[Inventory Hotkeys 1]
HeroOnly=0
Hotkey=89
MetaKeyState=0
QuickCast=0
[Inventory Hotkeys 2]
HeroOnly=0
Hotkey=71
MetaKeyState=0
QuickCast=0
[Inventory Hotkeys 3]
HeroOnly=0
Hotkey=72
MetaKeyState=0
QuickCast=0
[Inventory Hotkeys 4]
HeroOnly=0
Hotkey=66
MetaKeyState=0
QuickCast=0
[Inventory Hotkeys 5]
HeroOnly=0
Hotkey=78
MetaKeyState=0
QuickCast=0
Tried adding this to the CustomKeys.txt file and use custom keys + invetory keys, but this did not work. Does somebody know if there is a way to make this work (I know about third party solutions like w3champions and AHK)?