Function pointer for long press

Handle the long press under a function pointer.