Use inner mode's electricChars property

Also moves handling of electricChars to readInput, removing
the timeout kludge.

Issue #2029