Skip to content

Move Ctrl-F12 keybindings outside of libservo #17647

Closed

Description

@paulrouget

This code should be removed from here:

// Steal a few key events for webrender debug options.

Catching the keybinding should be done here:

And new WindowEvent should be created here:

/// Events that the windowing system sends to Servo.

And caught here:

fn handle_window_message(&mut self, event: WindowEvent) {
where we can actually toggle the profiler.

Activity

  1. added
    E-less-complex
    on Jul 10, 2017
  2. highfive commented on Jul 10, 2017

    @highfive

    Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the #servo channel in IRC.

    If you intend to work on this issue, then add @highfive: assign me to your comment, and I'll assign this to you. 😄

  3. Tremoneck commented on Jul 10, 2017

    @Tremoneck
    Contributor

    @highfive: assign me

  4. highfive commented on Jul 10, 2017

    @highfive

    Hey @Tremoneck! Thanks for your interest in working on this issue. It's now assigned to you!

  5. added
    C-assigned
    on Jul 10, 2017
  6. paulrouget commented on Jul 10, 2017

    @paulrouget
    ContributorAuthor

    @Tremoneck Thanks! Let me know if there's anything I can do to help.

  7. Tremoneck commented on Jul 10, 2017

    @Tremoneck
    Contributor

    @paulrouget After moving everything over and testing, it works, but it gives a warning about an usused import, should I just remove the import, or leave it in case someone else needs said import. The message is

        warning: unused import: `CONTROL`
          --> D:\git\Servo\servo\components\compositing\compositor.rs:14:59
           |
        14 | use msg::constellation_msg::{Key, KeyModifiers, KeyState, CONTROL};
           |                                                           ^^^^^^^
           |
           = note: #[warn(unused_imports)] on by default
    
  8. jdm commented on Jul 10, 2017

    @jdm
    Member

    If your changes cause new warnings to appear, please make appropriate changes that make the warnings go away :)

    Edit: more specifically, removing the unused import is the correct choice.

  9. added a commit that references this issue on Jul 11, 2017
    ee95bda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-assignedE-less-complex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions