Fix context menu select-all in IE9+

Closes #1522