Updated confirm navigation function

This patch will make sure confirm dialog is triggered only for visible input fields

Signed-off-by: A V Minhaz minhazav@gmail.com