-
Notifications
You must be signed in to change notification settings - Fork 68
[IMP] Composer: select text in the formula assistant #7444
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
base: master
Are you sure you want to change the base?
Conversation
hokolomopo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The feature sounds like composer hell 👀
| <div class="o-formula-assistant-container user-select-none shadow"> | ||
| <div | ||
| class="o-formula-assistant-container shadow" | ||
| tabindex="0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the focus is in the formula assistant and the we press arrows/a random key, the assistant gets a black outline. I'm guessing this isn't intended ?
| <div class="o-formula-assistant-container user-select-none shadow"> | ||
| <div | ||
| class="o-formula-assistant-container shadow" | ||
| tabindex="0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess blocking every keyboard input would do the trick :p I guess we would only miss the "Ctrl.A" feature ( and I really don't see the point of doing this tbh)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
honestly, all this is related to the onblur event taht we want to block no matter what. If we disable it on the grid /topbar composer (which I think we should do anyway), it fixes the issue. Did the onblur was absolutely required outside of the standalone composer? I don't recall that well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the onBlur give the composers a better behavior (no random focus regain after clicking in the topbar), but it's not 100% mandatory. But in 6 month we'll get a new task "cannot select text in the formula assistant in side panel composer" so I'm not sure it fixes the issue 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the issue I see with the onBlur is that is some real world cases, like switching tabs to copy/paste a content, you automatically lose the focus, which closes the composer. I stumbled upon it a few times and it wasa bit frustrating. And I obviously won't mention the debug behaviour. I will work around it for this task ofc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on the topbar composer it puts the focus on the "add rows footer", breaking the
that is also true for other inputs (zoom %, fontsize in the toolbar, I will create another task to address it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no strong feeling on onBlur in the grid/topbar composer either way, if you can convince francois i'm fine with removing it 🤷
| t-on-pointerdown.prevent.stop="" | ||
| t-on-pointerup.prevent.stop="" | ||
| t-on-click.prevent.stop=""> | ||
| t-on-pointerdown.stop="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the topbar composer, writing =S and clicking on a formula proposition closes the composer
b0cdbcf to
7c3a015
Compare
This commit introduces the possibility for the user to select the text content of the formula assistant. Task: 5169514
7c3a015 to
71997cc
Compare


This commit introduces the possibility for the user to select the text content of the formula assistant.
Task: 5169514
Description:
description of this task, what is implemented and why it is implemented that way.
Task: 5169514
review checklist