fixed some issues with devices with hardware menu buttons