use ev->time rather than ppb_core_get_time_ticks()
ppb_view: handle wrong resource ids
np_functions: handle FocusIn and FocusOut