Comments (11)
It works!! Thank you!
Test20220605.mov
from stylo.
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.
@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
from stylo.
@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.
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
from stylo.
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.
@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.
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.
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.
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.
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)
- feat: shortkeys to apply style bold, italic, etc. or open hyperlinks
- feat: transform pasted url to link HOT 1
- Using inside of my Designer - Events not raised, Text not formated HOT 4
- Sample seems not to work any more HOT 1
- how to customize link functionality? HOT 6
- Android v12 keyboard focus HOT 2
- Integration of Stylo inside of other webcomponents HOT 12
- Info: Demonstration usage inside of webcomponents HOT 1
- CDN link is broken HOT 7
- Replace custom filterAttributesMutations with MutationObserver attributeFilter HOT 1
- delay "Press / for plugins"
- Reposition Poup after Font Size Change HOT 1
- color picker overlay height on brave HOT 2
- Selection mark disappear HOT 4
- Any chance for adding video to the widget? HOT 1
- A few odd behaviors. HOT 4
- Colors don't close HOT 2
- Doesn't work with CDN HOT 1
- bug: key briefly appear on Android and disappear quickly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylo.