Support electricInput as well as electricChars on mode objects

Issue #2412