-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed: Refactoring #1652 #1654
Conversation
- Remove `checkForSelection` - Move `native-key-bindings` to more specific component
@aviatesk I don't mind a refactor, and I also believe that There is a reason to how the code is structured, and having the function only call on inline was very purposeful. Allow me to explain:
Below are some opinions and testing I did on your branch. For Inline Containers:
For Multi-line Containers:
For History:
General:
|
@wadethestealth For now I feel like I rushed to the hasty conclusion, thus I label this PR as WIP. |
@aviatesk Looking forward to seeing an update! |
Sorry for being so late to make update m(_ _)m I reviewed my code and you comments. And as for immediate-copying, actually I also felt this is kinda radical change and after reading your opinion, I think we better to avoid that behaviour. Thanks for telling your opinion. As for refactoring, now I find you code of the PR just does what's needed and is neat, thus there seems no need for refactoring 😅 So in conclusion I want to close this PR. Thanks for your detailed review again ! P.S.: But so far I couldn't make something work. It may need more inspections. I may try this again in another time. |
I found #1652 is a nice try but it also seems to be better to be refactored.
Problems:
checkForSelection
functionality is really vague. It's only defined oninline-container
and does nothing but checking for selectionhandleClick
stuff if it's defined on more specific child componentI refactored them and now we can just make a selection and it gets copied. If clicked without selection, does nothing.
Additionally I removed seemingly a purpose-less tooltip on
inline-container
(maybe added in a previous state of the project).But as for copying stuff, more discussions should be made. Please let me hear your feedbacks !