fix #39641: ctrl+c does not work in screenshot mode