Add inputFilter function to InputWidget

Change-Id: I6abc5281c70f01c26cfa181c37ed3240bda3eb3e