jupyterlab / jupyterlab

JupyterLab computational environment.
https://jupyterlab.readthedocs.io/
Other
14.09k stars 3.32k forks source link

Add support for touch typing in handheld devices #14993

Open Coderx7 opened 1 year ago

Coderx7 commented 1 year ago

Problem

Currently it's impossible to do selection/copy etc in a cell using normal touch keyboards in handheld devices such as phones, tablets,etc.

Like if I'm working on a piece of code or a project and face an error, there's no way to select/copy that error for googling it for example, since long pressing results in the right click menu being shown. this makes editing very hard as well. The only way to get around this is to use special keyboards that provide function keys (arrow keys, shift,etc) present in a normal physical keyboards.

Proposed Solution

Adding a new option that changes the default behavior for touch devices so that when a long press is detected instead of the right click menu being shown, an intermediary menu pops up that offers selection, context/right lick menu, etc and allows the user to choose the proper option accordingly. here's an example from googlecolab :

Screenshot_2023-08-18-21-24-01-327_com android chrome

as you can see, many functionalities are at users disposable and he/she can easily choose between them without affecting other functionalities.

Additional context

We don't have this issue in GoogleColab for example, and it works perfectly. opting for using something like that would be a good start imho.

welcome[bot] commented 1 year ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

krassowski commented 1 year ago

@Coderx7 what version of JupyterLab are you using?

Coderx7 commented 1 year ago

@Coderx7 what version of JupyterLab are you using?

I'm using version 4.0.4