Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

elm_code: Right click > paste causes no keyboard input. #14

Closed
NuLogicSystems opened this issue Oct 20, 2017 · 20 comments
Closed

elm_code: Right click > paste causes no keyboard input. #14

NuLogicSystems opened this issue Oct 20, 2017 · 20 comments

Comments

@NuLogicSystems
Copy link

Right click again restores the keyboard input.

@wltjr
Copy link
Member

wltjr commented Oct 20, 2017

I am not able to replicate, likely not following same steps. Can you please describe the steps to replicate? I assume you mean;

  1. Right click paste text
  2. Try to enter text after

Something seems off with that right click paste stuff. All function and code is in elm_code, but seems something in ecrire causes problems. Given the duplicate paste that can only be replicated in ecrire for some reason with the elm_cnp stuff.

@NuLogicSystems
Copy link
Author

NuLogicSystems commented Oct 21, 2017

Yes, paste text into ecrire using right click and try to type, nothing types.
You can either right click again, click on the titlebar (like your going to move the window), click on the bottom bar, try to resize window, or use any of the buttons or menu functions. In other words, it sort of looses keyboard focus. Moving focus away from the input field, and then back again, fixes it.

@wltjr
Copy link
Member

wltjr commented Oct 21, 2017

Interesting, unfortunately I am not able to replicate. Are you using EFL 1.20.4 or git? Also what version of E? Though think its likely an EFL vs E problem. Are you able to replicate in elm tests or edi? Thanks!

@NuLogicSystems
Copy link
Author

I'm using git master most of the time.
I just checked, and yes, I can reproduce this in elm test.

@wltjr
Copy link
Member

wltjr commented Oct 21, 2017

Sounds like an elm_code bug in git EFL. Which is a new issue that did not exist. In addition to the duplicate paste with right click. Seems that whole right click handling is rather buggy.

@NuLogicSystems
Copy link
Author

NuLogicSystems commented Oct 21, 2017

I just remembered that marcel has been working focus lately, maybe the issue is in there.
This could also be a clipboard issue. I'll mention this to him and see what we can come up with.

@wltjr
Copy link
Member

wltjr commented Oct 21, 2017

Possibly but elm_code tends to deviate from the normal stuff pretty heavily. Most things are ajwilliams and al/netstar.

@NuLogicSystems
Copy link
Author

NuLogicSystems commented Oct 21, 2017

I'm not sure what you mean, but Marcel (bu5hm4n) has been working on all aspects of focus lately:
https://git.enlightenment.org/core/efl.git/log/

@wltjr
Copy link
Member

wltjr commented Oct 21, 2017

Its hard to explain. If you experience issues in elm_code not in other widgets that is the easiest way to explain. I bet the issues you are experiencing do not show in anything else. I am not sure about focus, but any elm_code bugs tend to be worked on by others as well as elm_code development.
https://git.enlightenment.org/core/efl.git/log/?qt=grep&q=elm_code

@wltjr
Copy link
Member

wltjr commented Oct 24, 2017

Finally able to replicate this on 1.20.5. It seems to be another 2nd paste issue. I can type after the first paste, but not the 2nd.

It is a focus related issue!

Elm code does something unique when it has focus. The line the cursor is on turns black. You can clearly see on the 2nd paste when you cannot type. The line becomes grey. Indicating that elm_code lost focus. If you click in the text area of ecrire. You will notice it turns black again and you are able to type. Thus it is clearly losing focus. You likely could type if focus remained.

That it only triggers on 2nd paste. Makes me think it has something to do with the other duplicate paste issue. Though maybe unrelated. Both are triggered on 2nd paste. Not sure what makes that special. I guess some boolean or something is being toggled. Thus it works fine on 1st paste, but on 2nd it does not.

@wltjr wltjr changed the title Right click > paste causes no keyboard input. elm_code: Right click > paste causes no keyboard input. Nov 11, 2017
@wltjr
Copy link
Member

wltjr commented Nov 24, 2017

Adding upstream so they are aware of issues
@Enlightenment @ajwillia-ms @zmike

@andydotxyz
Copy link

I cannot replicate locally with the latest focus code in EFL

@NuLogicSystems
Copy link
Author

@ajwillia-ms
Is that efl-git or efl 1.20.6?

@andydotxyz
Copy link

efl-git - focus code was in the middle of being changed in 1.20.6 so if it's on that version it would be great to know if it is resolved on master.

@NuLogicSystems
Copy link
Author

NuLogicSystems commented Nov 24, 2017

I can still reproduce the after second paste it looses focus in the code editor on EFL 1.20.6.
After second paste I can't hit enter and have to click in the box again to get the keyboard back.

Steps to reproduce:

  • paste a line in code editor
  • hit enter for a new line
  • paste again on second line
  • focus is no longer on code editor
  • click back in code editor box
  • can now use keyboard again

@andydotxyz
Copy link

Is it possible to test efl-git? This may already be fixed upstream

@NuLogicSystems
Copy link
Author

I'll try on my test machine later. This one needs to remain on stable releases.

@wltjr
Copy link
Member

wltjr commented Feb 21, 2018

@ajwillia-ms this still exists in 1.20.7-pre. Not sure if anything was fixed in EFL regarding focus or an elm_code specific issue. I can replicate in Elementary tests and EDI. Just as said above. The cursor goes away is the obvious tell.

After the first paste from right click, the cursor is at the end of the pasted text. When you right click and paste again, the 2nd time. The cursor does not show at the end of the pasted text. If you right click to paste again, the 3rd time, a cursor shows up again. On the 4th, it goes away. So every other.

@wltjr
Copy link
Member

wltjr commented Aug 3, 2018

Ah I just came across this, but after talking to @haxworx seems its resolved in git, so will close when 1.21 is released.

@wltjr
Copy link
Member

wltjr commented Aug 19, 2018

Tested in released EFL 1.21.0. I could not replicate the original issue. Able to type text after right click paste. Seems resolved, closing.

@wltjr wltjr closed this as completed Aug 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants