fixed keyboard bug in photo viewer