mirror of
https://github.com/atom/atom.git
synced 2026-02-15 17:15:24 -05:00
shift-double-click and shift-triple-click are ignored.
This commit is contained in:
@@ -615,24 +615,28 @@ describe "Editor", ->
|
||||
expect(editor.getSelection().getScreenRange()).toEqual [[4, 7], [5, 24]]
|
||||
|
||||
describe "shift-double-click", ->
|
||||
it "expands the selection to include the double-clicked word", ->
|
||||
it "expands the selection on the first click and ignores the second click", ->
|
||||
editor.setCursorScreenPosition([4, 7])
|
||||
editor.renderedLines.trigger mousedownEvent(editor: editor, point: [5, 24], shiftKey: true, originalEvent: { detail: 1 })
|
||||
editor.renderedLines.trigger 'mouseup'
|
||||
expect(editor.getSelection().getScreenRange()).toEqual [[4, 7], [5, 24]]
|
||||
|
||||
editor.renderedLines.trigger mousedownEvent(editor: editor, point: [5, 24], shiftKey: true, originalEvent: { detail: 2 })
|
||||
editor.renderedLines.trigger 'mouseup'
|
||||
expect(editor.getSelection().getScreenRange()).toEqual [[4, 7], [5, 27]]
|
||||
expect(editor.getSelection().getScreenRange()).toEqual [[4, 7], [5, 24]]
|
||||
|
||||
describe "shift-triple-click", ->
|
||||
it "expands the selection to include the triple-clicked line", ->
|
||||
it "expands the selection on the first click and ignores the second click", ->
|
||||
editor.setCursorScreenPosition([4, 7])
|
||||
editor.renderedLines.trigger mousedownEvent(editor: editor, point: [5, 24], shiftKey: true, originalEvent: { detail: 1 })
|
||||
editor.renderedLines.trigger 'mouseup'
|
||||
expect(editor.getSelection().getScreenRange()).toEqual [[4, 7], [5, 24]]
|
||||
|
||||
editor.renderedLines.trigger mousedownEvent(editor: editor, point: [5, 24], shiftKey: true, originalEvent: { detail: 2 })
|
||||
editor.renderedLines.trigger 'mouseup'
|
||||
editor.renderedLines.trigger mousedownEvent(editor: editor, point: [5, 24], shiftKey: true, originalEvent: { detail: 3 })
|
||||
editor.renderedLines.trigger 'mouseup'
|
||||
expect(editor.getSelection().getScreenRange()).toEqual [[4, 7], [6, 0]]
|
||||
expect(editor.getSelection().getScreenRange()).toEqual [[4, 7], [5, 24]]
|
||||
|
||||
describe "meta-click", ->
|
||||
it "places an additional cursor", ->
|
||||
|
||||
Reference in New Issue
Block a user