This commit is contained in:
Daniel Imms
2022-08-07 07:46:16 -07:00
parent c39d235168
commit 9c9ff2b38c
3 changed files with 2 additions and 17 deletions
-3
View File
@@ -2912,7 +2912,6 @@ export class InputHandler extends Disposable implements IInputHandler {
*/
public setHyperlink(data: string): boolean {
const args = data.split(';');
console.log('hyperlink', args);
if (args.length < 2) {
return false;
}
@@ -2939,13 +2938,11 @@ export class InputHandler extends Disposable implements IInputHandler {
this._curAttrData.extended = this._curAttrData.extended.clone();
this._currentLinkId = this._oscLinkService.registerLink({ id, uri });
this._curAttrData.extended.urlId = this._currentLinkId;
console.log('register', uri, `id=${this._curAttrData.extended.urlId}`);
this._curAttrData.updateExtended();
return true;
}
private _finishHyperlink(): boolean {
console.log('finish hyperlink');
this._curAttrData.extended = this._curAttrData.extended.clone();
this._curAttrData.extended.urlId = 0;
this._curAttrData.updateExtended();