ucb-snap / Snap-decal-fa14

The official repository for the Snap!: Below the Line Decal at UC Berkeley Fall 2014.
3 stars 16 forks source link

Keyboard shortcuts for browser intercepted by snap (fixed) #24

Open jeeves833 opened 9 years ago

jeeves833 commented 9 years ago

In Morphic.js, I added a list containing unicode representations of "n", "o", "s", and "f", the only keyboard shortcuts that would present conflicts between Snap and the browser. Now, whenever Snap receives a ctrl+some button command, it will check if this command is in our list of shortcuts. If the code is not in the shortcuts, it will pass the command on to the browser. In addition, Snap now has text in its drop-down menus detailing the keyboard shortcuts it supports.