bug 2126 - fixed logic for checking input tab