Fix inheritance of input method for prompt