Implement shortcuts handling on native side.