some changes in mouse event handling:

- use onProtocolChange
- remove mouse states from Terminal.ts
- remove selectionService from InputHandler
- fix up events in VT200 mode
- fix move event with no buttons in ANY mode
This commit is contained in:
Jörg Breitbart
2019-07-19 16:21:30 +02:00
parent df0cf253ac
commit cbddbc6e83
6 changed files with 155 additions and 146 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ describe('CoreMouseService', () => {
cms.activeProtocol = 'NONE';
assert.deepEqual(wantedEvents, [[]]);
cms.activeProtocol = 'ANY';
assert.deepEqual(wantedEvents, [[], ['mousedown', 'mouseup', 'wheel', 'mousemove']]);
assert.deepEqual(wantedEvents, [[], ['mousedown', 'mouseup', 'wheel', 'mousedrag', 'mousemove']]);
});
describe('triggerMouseEvent', () => {
let cms: CoreMouseService;