Change Anchor contextmenu event handler behavior

Signed-off-by: Álvaro Arranz <aarranz@conwet.com>