Removed 'Space' and 'Enter' keys from translateToKey map. As per my research, this map is used in hasKeyPressEvent method, which tells you if a given key has keyPress event or not for further emulation. All keys from the map except 'Space' and 'Enter' don't have keyPress event. Let's remove these two from the map.
Removed 'Space' and 'Enter' keys from translateToKey map. As per my research, this map is used in hasKeyPressEvent method, which tells you if a given key has keyPress event or not for further emulation. All keys from the map except 'Space' and 'Enter' don't have keyPress event. Let's remove these two from the map.