Giter Site home page Giter Site logo

Comments (11)

HWRDWLWZ avatar HWRDWLWZ commented on May 14, 2024 1

It works!! Thank you!

Test20220605.mov

@peterpeterparker

from stylo.

peterpeterparker avatar peterpeterparker commented on May 14, 2024 1

Yoohoo! I'm so happy to hear that πŸ₯³.

It was tricky to understand what was going wrong on and did not knew about the keyCode 229.

Thanks a lot for the help and feedback @HWRDWLWZ πŸ™

from stylo.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

@HWRDWLWZ is following a particular plugin or it uses a feature of the browser?
if native, what browser and what OS?

the error happens when you press space right?
can you give me a list of keys that can lead to the issue?

i tried to reproduce the issue with chrome and the chrome input tools but wasn't able to reproduce it.

thanks in advance for the details

Capture d’écran 2022-05-16 aΜ€ 20 33 18

from stylo.

HWRDWLWZ avatar HWRDWLWZ commented on May 14, 2024

@peterpeterparker
Browser is google chrome.

The issue is the create New line happens when typed Enterkey.

(in video, I found another issue that is word goes duplicate automatically when type word because of word suggest in Mac native function.)

from stylo.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

Which Chrome version?
Windows or Mac?

As you can see in following capture, I write gibberish but enter key is working with the Google Inputs tool.

I need to find a way to replicate the same settings as you have and try to see why it propagate the "enter" event.

For some reason in your setting the enter keys of the type assist are bubbling to the content editable - i.e. are catched here https://github.com/papyrs/stylo/blob/1b283a43a97a2717a4925320320165147dd01e46/src/events/enter.events.ts#L31

ezgif com-gif-maker (1)

from stylo.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

I've tried again, still no luck. What version of Chrome are you using?

also look like the Google inputtool I'm using doesn't look exactly the same as the one in above video so maybe something different there that does not help reproducing the issue.

Long story short, if someone who speak japanese can help debugging this, it would be helpful!

from stylo.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

@hideto0118 will give a hand debugging this. I'll prepare a branch with some debugging information and hideto0118 will try to reproduce the error and collect some info

from stylo.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

Pressing the enter key to convert from hiragana to kanji automatically breaks the line.

Are you pressing "enter" only or are you pressing "shift + enter" or another combination?

from stylo.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

In OpenChat they have implemented a feature "Enter key sends message" for the same reason I think. I'll try to see what they implemented.

from stylo.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

We should try ckeditor/ckeditor5#5750 (comment)

i.e. handling keyCode event 229 and not adding paragraph when it is sent

select2/select2#2482 (comment)
https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html

from stylo.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

I deployed a potential fix, can you give it a try @HWRDWLWZ and let me know if it works out (🀞)?

from stylo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.