Refs #410. Made polyfill recalculated headings on keyup instead of keydown and added short-circuiting based on key code. Also added handler to recalculated heading numbering on click event in the containers panel.