Skip to content

Undo/redo command don't fire for webviews if used from command palette  #101553

Closed

Description

@mjbvz

Matt Bierner (@mjbvz) Trying to verify this with the hex editor extension which listens to the undo and redo events which get fired for custom editors. I can execute undo and redo via keyboard shortcut, but not via the command palette. When you mean edit menu do you mean the right click menu?

Originally posted by Logan Ramos (@lramos15) in #90110 (comment)

Activity

  1. added
    custom-editors
    webview
    bug
    on Jul 2, 2020
  2. mjbvz commented on Jul 2, 2020

    @mjbvz
    ContributorAuthor

    The root cause of this is that regular undo command is fired when undo is triggered from the command palette:

    export const Undo = new class extends EditorOrNativeTextInputCommand {

    This is likely because the command palette is still the active element

  3. added
    help wanted
    on Jul 2, 2020
  4. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Oct 14, 2020
  5. locked and limited conversation to collaborators on Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcustom-editorshelp wantedinsiders-releasedverifiedwebview

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions