fdo#45962: fix context menu key yanking cursor out of header/footer