With certain look and feels, namely windows with XP style, the focus of a toolbar button is already indicated (border changes) and the focus indicator should not be drawn: this fixes the visual rendering.
Considering some text and a code point that is being inserted at a given position, return the code point to actually insert or null if the insertion is not allowed.