text: Add TODO related to opening links

This commit is contained in:
Kamil Jarosz 2024-06-30 22:44:45 +02:00 committed by Nathan Adams
parent d770422724
commit dc4ea60d13
1 changed files with 2 additions and 0 deletions

View File

@ -2471,6 +2471,8 @@ impl<'gc> TInteractiveObject<'gc> for EditText<'gc> {
// TODO: This fires on mouse DOWN but it should be mouse UP... // TODO: This fires on mouse DOWN but it should be mouse UP...
// but only if it went down in the same span. // but only if it went down in the same span.
// Needs more advanced focus handling than we have at time of writing this comment. // Needs more advanced focus handling than we have at time of writing this comment.
// TODO This also needs to fire only if the user clicked on the link,
// currently it fires when the cursor position resolves to one in the link.
self.open_url(context, &url, &target); self.open_url(context, &url, &target);
} }
} }