If a user tries to paste anything outside a cell, the paste function is called. This function checks if the user is attempting to paste cells into the notebook, but calls event.preventDefault regardless of whether that is the case or not. This means that if the objective is anything other than pasting cells into the notebook nothing will happen. This issue happens only with Jupyter notebooks - Jupyter lab behaves the expected way.
Then click on the full screen button on the top right of the output cell.
Try to paste anything into the text field while the view is in full screen mode.
Description
If a user tries to paste anything outside a cell, the
paste
function is called. This function checks if the user is attempting to paste cells into the notebook, but callsevent.preventDefault
regardless of whether that is the case or not. This means that if the objective is anything other than pasting cells into the notebook nothing will happen. This issue happens only with Jupyter notebooks - Jupyter lab behaves the expected way.Reproduce
Run a notebook with this code in a cell:
Then click on the full screen button on the top right of the output cell. Try to paste anything into the text field while the view is in full screen mode.
Expected behavior
Pasting into the text field works.