Add two new APIs for active keyboard layout.

This goes with https://github.com/adobe/brackets/pull/9652.