Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement Servo Control Template #23981
Conversation
|
|
|
Verified that this patch works Unsure if this is triggered by this patch or an earlier one, but when scrolling down my hand often scrolls beyond the content window and crosses the URL bar, and when this happens the URL entry thing gets triggered. We should probably be disabling UI control events when a touch event starts within the content window. |
|
Looks great to me. If you can figure out how to avoid scrolling and other touch-drag events from triggering the URL bar keyboard that would be great, but not necessary for this patch. |
| </StackPanel> | ||
| <TextBox Text="" AcceptsReturn="True" PlaceholderText="Type a URL" x:Name="urlTextbox" Grid.Column="1" IsReadOnly="True"/> | ||
| <TextBox Text="" IsTabStop="true" PlaceholderText="Type a URL" x:Name="urlTextbox" Grid.Column="1" KeyUp="OnURLEdited"/> |
This comment has been minimized.
This comment has been minimized.
Manishearth
Aug 19, 2019
Member
While you're at it could you set InputScope=Url on this? I tested it and it works, it brings up a modified keyboard.
The problem existed before, but the URL bar was only readonly, so no keyboard popping up. In theory, this should not happen (events should be all grabbed by the focused control). I'll investigate. |
|
Many PRs depend on this. I'll land this and file a follow-up for the focus issue. |
|
@bors-servo r=manishearth |
|
|
|
|
|
sounds good, like i said, fixing the issue isn't necessary for this patch |
Implement Servo Control Template This wraps the swapchain in its own control, making it possible to better control the widget behavior. In the future, we could package that control into a nuget package allowing any app to use Servo. Fix #23894 Fix #23916 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23981) <!-- Reviewable:end -->
|
|
Remove HoloLens immersivemode demo Depends on #23981 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23982) <!-- Reviewable:end -->
Remove HoloLens immersivemode demo Depends on #23981 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23982) <!-- Reviewable:end -->
[hololens] Handle servo panic Depends on #23981 Fix #23937 I've used a different approach than checking the return code of every single functions. Basically calling a C function on panic. That means the errors are not recoverable. I think it's fine for now. I'm open to any other better approach. @jdm what do you think? <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23983) <!-- Reviewable:end -->
paulrouget commentedAug 16, 2019
•
edited by SimonSapin
This wraps the swapchain in its own control, making it possible to better control the widget behavior.
In the future, we could package that control into a nuget package allowing any app to use Servo.
Fix #23894
Fix #23916
This change is