Community
    • Login

    shortcuts.xml

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 2 Posters 659 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Paul WormerP
      Paul Wormer
      last edited by Paul Wormer

      I have question that is merely ment to satisfy my curiosity.

      In shortcuts.xml almost all definitions are mutually exclusive: either the command comes from PowerEditor, or from Scintilla. The exception is:
      <ScintKey ScintID="2469" menuCmdID="42010" Ctrl="yes" Alt="no" Shift="no" Key="68" />.
      This definition seems to assign simultaneously ctrl+D to "2469" (“SCI_SELECTIONDUPLICATE”) and to "42010" (“IDM_EDIT_DUP_LINE”).

      When I look at Settings > Shortcut Mapper, I only find an association of ctrl+D with “SCI_SELECTIONDUPLICATE”.

      In actual practice it seems that ctrl+D duplicates both selections and lines. My question is: what is the priority of key association? And if two commands are associated with the same key, what circumstance determines which command is executed?

      Alan KilbornA 2 Replies Last reply Reply Quote 2
      • Alan KilbornA
        Alan Kilborn @Paul Wormer
        last edited by

        @Paul-Wormer

        Ah, you may have stumbled upon the answer to a really old question (discussed here before) about this…

        1 Reply Last reply Reply Quote 0
        • Alan KilbornA
          Alan Kilborn @Paul Wormer
          last edited by

          @Paul-Wormer

          And it seems like you were one of the people questioning this before: https://community.notepad-plus-plus.org/topic/23791/

          Paul WormerP 1 Reply Last reply Reply Quote 2
          • Paul WormerP
            Paul Wormer @Alan Kilborn
            last edited by

            @Alan-Kilborn I’m deeply embarrassed, not yet a year ago almost the same question! I must see dr. Alzheimer.

            Alan KilbornA 1 Reply Last reply Reply Quote 2
            • Alan KilbornA
              Alan Kilborn @Paul Wormer
              last edited by

              @Paul-Wormer

              No worries; the refreshing of the topic has made me put forth a potential fix; see https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14255

              I think back at the times of original discussion, I wasn’t brave enough to attempt a code change to Notepad++. :-)

              1 Reply Last reply Reply Quote 0
              • Alan KilbornA Alan Kilborn referenced this topic on
              • Alan KilbornA
                Alan Kilborn
                last edited by

                Will be fixed with the release of Notepad++ 8.5.9!

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors