editor: prevent right-click from changing selection when shift or mod is pressed
This commit is contained in:
parent
3b39fcc8ad
commit
652aa693cd
1 changed files with 2 additions and 2 deletions
|
|
@ -149,8 +149,8 @@ var handleClick = function(event) {
|
|||
// right-click menu
|
||||
if (event.type !== 'fast-right-click') return
|
||||
|
||||
if (!event.detail.shiftKey && editor.selectedWidgets.length <= 1) {
|
||||
editor.select(widget, {multi: event.detail[multiSelectKey]})
|
||||
if (!event.detail.shiftKey && !event.detail[multiSelectKey] && editor.selectedWidgets.length <= 1) {
|
||||
editor.select(widget)
|
||||
}
|
||||
|
||||
if (!editor.selectedWidgets.length) return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue