Update inputhelper.cpp