Call this function in your UI to enable the functionality of show_contextmenu.

use_contextmenu()