• Login
Community
  • Login

shortcuts.xml

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 2 Posters 672 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.
  • P
    Paul Wormer
    last edited by Paul Wormer Oct 19, 2023, 1:26 PM Oct 19, 2023, 1:20 PM

    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?

    A 2 Replies Last reply Oct 19, 2023, 1:49 PM Reply Quote 2
    • A
      Alan Kilborn @Paul Wormer
      last edited by Oct 19, 2023, 1:49 PM

      @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
      • A
        Alan Kilborn @Paul Wormer
        last edited by Oct 19, 2023, 11:09 PM

        @Paul-Wormer

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

        P 1 Reply Last reply Oct 20, 2023, 9:05 AM Reply Quote 2
        • P
          Paul Wormer @Alan Kilborn
          last edited by Oct 20, 2023, 9:05 AM

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

          A 1 Reply Last reply Oct 22, 2023, 4:20 PM Reply Quote 2
          • A
            Alan Kilborn @Paul Wormer
            last edited by Oct 22, 2023, 4:20 PM

            @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
            • A Alan Kilborn referenced this topic on Oct 22, 2023, 4:21 PM
            • A
              Alan Kilborn
              last edited by Oct 25, 2023, 1:42 AM

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

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