-
Notifications
You must be signed in to change notification settings - Fork 734
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
Calc: Don't switch tabs when context menu is triggered #7377
Calc: Don't switch tabs when context menu is triggered #7377
Conversation
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.
it was introduced previously because if we right-clicked on non-selected sheet to open context menu - actions were applied to the selected sheet. It still happens for some actions:
"move sheet left", "move sheet right", "move or copy sheet"
steps to reproduce:
- have 3 sheets, 1st is scurrently selected
- right click on 3rd sheet and do "move sheet left"
result: sheet 1 is moved
expected: sheet 3 is moved
@eszkadev : I see that https://github.com/CollaboraOnline/online/pull/7377/files#diff-a3b5fb6d0c66140a66a5e27fed984875e9c8f1194a8dfb152a5716b17fc2ea6dL282 There should be a way to move inactive sheets. I'm not sure but it seems there should be some hack on the Thanks for the review. |
upstream: 158078: (WIP) sc: make inactive sheets movable/copyable | https://gerrit.libreoffice.org/c/core/+/158078 |
350a687
to
cc2e3fb
Compare
cc2e3fb
to
71f91ed
Compare
please rebase so Unit & Cypers will pass |
71f91ed
to
03454c0
Compare
@eszkadev : what should be the next step. ?
should I update the sheet_operation_spec.js test? |
If we will merge core part first, then this PR will pass right? |
|
03454c0
to
ab03f1b
Compare
- Trying to open context menu from a sheet tab also changes the active tab. This occurs when right click on a sheet tab (or long tap on mobile or tablet) - moveLeft and moveRight of inactive tabs are implemented. - added _moveSheetLR and _moveOrCopySheet functions. Signed-off-by: Bayram Çiçek <[email protected]> Change-Id: I5b25a8cb363b8e04fd6dcec1f500e7ff2982b678
ab03f1b
to
872e17b
Compare
upstream: 158078: sc: make inactive sheets movable and copyable | https://gerrit.libreoffice.org/c/core/+/158078 |
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.
/me Pulls gerrit change ... sorry
Thanks @bayramcicek I have tested all the actions in the context menu. There don't work as expected:
- Move sheet left
- Move sheet right
- Move or copy sheet...
- If you have: [sheet1] [sheet2] [sheet3] [sheet4] [sheet5]
current sheet in bold
- Right Click in the [sheet4]
- Choose any of the actions listed above
- Notice: the actions affect the current sheet instead of the one that was clicked on
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.
requires: https://gerrit.libreoffice.org/c/core/+/158078
Works awesomely, thanks @bayramcicek !
Would like to have +2 from @gokaysatir |
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.
Thanks @bayramcicek :)
I tested and found no issues. I think we can merge this. |
Trying to open context menu from a sheet tab, also changes the active tab. This occurs when right click on a sheet tab (or long tap on mobile or tablet)
moveLeft and moveRight of inactive tabs are implemented.
added _moveSheetLR and _moveOrCopySheet functions.
Change-Id: I5b25a8cb363b8e04fd6dcec1f500e7ff2982b678
Summary
TODO
Checklist
make check
make run
and manually verified that everything looks okay