ish icon indicating copy to clipboard operation
ish copied to clipboard

Clicking by a mouse or trackpad cannot focus the cursor

Open kkebo opened this issue 4 years ago • 18 comments

Tapping the screen can focus the cursor, but clicking by a mouse or trackpad can't do.

IMB_Kau7FZ

I'm using 11-inch iPad Pro (2020) running iPadOS 13.5 and iSH 1.0 (67).

kkebo avatar May 23 '20 09:05 kkebo

Also noticed that highlighting text works with the cursor but you can't then command-c to copy (not sure if its related but it's also cursor related)

repl-mike-roest avatar Jun 30 '20 22:06 repl-mike-roest

Fixed in build 72.

kkebo avatar Jul 01 '20 16:07 kkebo

I'm still able to reproduce this in build 72 @kkk669

repl-mike-roest avatar Jul 01 '20 17:07 repl-mike-roest

@repl-mike-roest Which problem are you saying about? The problem I originally reported has been fixed in my environment.

kkebo avatar Jul 01 '20 23:07 kkebo

Both issues the copy/paste I noted but I’m still having your original posted issue as well.

repl-mike-roest avatar Jul 01 '20 23:07 repl-mike-roest

@repl-mike-roest It's weird. Possibly, it's because I'm using iPadOS 14 Developer Beta 1. I reopened this issue. Thanks.

kkebo avatar Jul 02 '20 00:07 kkebo

Thanks!

repl-mike-roest avatar Jul 02 '20 00:07 repl-mike-roest

I’m having this problem on build 73. Worse still, if I click with my mouse and defocus the cursor, then I’m unable to refocus it with the touchscreen, Apple Pencil, and mouse.

FrederickGeek8 avatar Aug 10 '20 23:08 FrederickGeek8

I’m facing the same issue on iPad Pro 11 2018 (iPadOS 14.1) and iSH 1.0.1, using external mouse and external keyboard. As side note, sometimes double click on the small rectangle, helps to bring back the focus. And when it lost focus you can actually Ctrl+C or Ctrl +D, it will receive the key press but you cannot type any text.

Oh and when you type and reach the bottom of the screen where the key bar is, when you switch screen to other app and switch back, you will always lot the focus.

puthi avatar Oct 31 '20 11:10 puthi

Hi, so I have the same issue.

FYI the workaround when this happens is to click (not tap) the trackpad/cursor and keep the "mouse button" down while clicking for a second. After that, you can type again (and the bar in the window below will also reappear.)

To reproduce the problem you can do the same by the way, just click the screen and the bar in the window below will go away and you can't type anymore.

-- Magic Keyboard iPadOS 14.6 ISH 1.2 (build 149) - from the AppStore

notDavid avatar May 28 '21 16:05 notDavid

So the issue is still there in 1.2.2 (Build 178), but the mentioned workaround above works (holding down the trackpad). Another workaround I’ve been using is single tap on the trackpad and that seems to always work as well.

What’s interesting though is that I while testing that workaround I found that if you don’t hold down the trackpad/mouse button long enough, the keyboard/typing focus is always lost exactly when the trackpad is release.

So maybe it has to do with some JavaScript mouseup event? Or the speed between the mousedown and mouseup events maybe? I don’t know exactly, but some rudimentary testing of MouseEvent performance, it seems tapping (either on the screen or trackpad) is about 1ms between mousedown and mouseup and clicking on the trackpad (the fastest I could do it) was about 30ms.

Dunno, none of this may matter and it may not be related to this. Just trying to add information to help track things down to fix it. — Magic Keyboard iPadOS 14.7.1 iSH 1.2.2 (Build 178) - from AppStore

kgsbowtie avatar Aug 15 '21 01:08 kgsbowtie

I have the same issue here using an external bluetooth keyboard with a touchpad. Using version 1.3.2 which is the lastest one her in feb 2024. Unfortunatelly none of the workarounds are working for me so only possibility is to kill the app and start again. no alphanumeric char works .. so fx the arrows work you can scroll through latest commands and ctrl-c works for newline but no new text can by typed and backspace also not working. Started therefore to use another program a-shell for ssh sessions. but would really like this to be fixed.. Any ide .. is it possible to just disable the trackpad when in the shell .. i dont really need it actually, but the fingers just slipp there occationally and then booom.. have to kill the app.

thorolason avatar Feb 17 '24 21:02 thorolason

I’m also experiencing an inability to type after the app loses and then regains focus. I’m on iSH 1.3.2 build 494 on the latest iPad OS 17. In this state the cursor turns into a box. Shortcut keys work, arrow keys work, cut and paste works, and scroll works but letter keys, space, delete etc do not work. The issue is somewhat sporadic. I can use the app for a while switching back and forth fine but then at some point I’ll return focus to iSH and input wont work anymore. Also, the on screen menu disappears in this state too. I tried every possible key combo I could think of, including command comma to open space, which does work, but doesn’t result in text input working again. None of the work arounds in this thread worked.

adamrdrew avatar May 10 '24 20:05 adamrdrew

The best “workaround” i have found is to disable the “tap to click” feature in the trackpad. but that is then for all apps. but keeps this from happening accidentally in ish.

On Fri, 10 May 2024 at 22.14, Adam Drew @.***> wrote:

I’m also experiencing an inability to type after the app loses and then regains focus. I’m on iSH 1.3.2 build 494 on the latest iPad OS 17. In this state the cursor turns into a box. Shortcut keys work, arrow keys work, cut and paste works, and scroll works but letter keys, space, delete etc do not work. The issue is somewhat sporadic. I can use the app for a while switching back and forth fine but then at some point I’ll return focus to iSH and input wont work anymore. Also, the on screen menu disappears in this state too. I tried every possible key combo I could think of, including command comma to open space, which does work, but doesn’t result in text input working again. None of the work arounds in this thread worked.

— Reply to this email directly, view it on GitHub https://github.com/ish-app/ish/issues/731#issuecomment-2105212792, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5UPYZGNAC34AM67BWPCDTZBUTATAVCNFSM4NIL2EHKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJQGUZDCMRXHEZA . You are receiving this because you commented.Message ID: @.***>

thorolason avatar May 10 '24 20:05 thorolason

Having the exact same issue as @adamrdrew IPad Pro M4, IpadOS 17.5, iSH 1.3.2 (build 494)

For me it mostly seems to occur when I use the mouse to select text I want to copy. But it also occurs when the app is running in the background and I switch to it. Oddly, it doesn’t happen every time for both scenario, but maybe 90% of the time I select text with the mouse. Holding down the trackpad does not function as a workaround me, so I’m forced to close the app, which is frustrating for my workflows because I lose my place and have to start over from the beginning. It’s a real productivity killer for my own workflows so hope this can get higher priority. Love iSH though! Thanks!

jaedub8 avatar May 20 '24 10:05 jaedub8