Community
    • Login

    Ctrl + e and ctrl + shift + alt not working

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 3.0k 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.
    • 1236987411
      123698741
      last edited by

      When I press ctrl + e a character like ENQ appears in a rectangle, instead of autocompleting a tag.
      And just when I press ctrl + shift + alt nothing happens

      Alan KilbornA 1 Reply Last reply Reply Quote 1
      • Alan KilbornA
        Alan Kilborn @123698741
        last edited by Alan Kilborn

        @123698741 said in Ctrl + e and ctrl + shift + alt not working:

        When I press ctrl + e a character like ENQ appears in a rectangle, instead of autocompleting a tag.

        What key-combination is the “autocompleting a tag” command set to in the Shortcut Mapper ?

        What is command is “ctrl+e” set to in the Shortcut Mapper ? (I suspect nothing because otherwise a black-boxed ENQ would NOT appear.)

        and just when I press ctrl + shift + alt nothing happens

        You mean only those 3 keys? If so, then you’re right, nothing happens (because nothing is supposed to).

        BTW, if you want to know more about ctrl+e, here’s some light reading for you:

        e3f3d5d8-99fc-4185-a213-d8bc7e2c6a8b-image.png

        datatraveller1D 1 Reply Last reply Reply Quote 4
        • datatraveller1D
          datatraveller1 @Alan Kilborn
          last edited by

          Hi @Alan-Kilborn,
          Thank you very much for your great answer.
          I would prefer if Ctrl+E printed nothing (like notepad). Pressing Shift+Ctrl+E also prints ENQ and Shift+Ctrl+B prints STX. At least the combinations with Shift should not cause to trigger these control characters. What do you think about it?

          Alan KilbornA 1 Reply Last reply Reply Quote 1
          • Alan KilbornA
            Alan Kilborn @datatraveller1
            last edited by

            @datatraveller1

            would prefer if Ctrl+E printed nothing. Pressing Shift+Ctrl+E also prints ENQ and Shift+Ctrl+B prints STX. At least the combinations with Shift should not cause to trigger these control characters. What do you think about it?

            Well, I basically agree with that, and I’ve long had a script that filters control characters out in case I “fat finger” one that isn’t assigned to a shortcut keycombo in Notepad++.

            It seems like this topic has been discussed in the Community before, but it was so long ago I can’t find the reference.

            But anyway, you can achieve your desire if you are willing to use the PythonScript plugin and set up the following simple script:

            # -*- coding: utf-8 -*-
            from Npp import *
            
            def modified_callback(args):
                if args['modificationType'] == MODIFICATIONFLAGS.INSERTCHECK:
                    t = args['text']
                    if len(t) > 1: return
                    if ord(t) in range(0, 0x1F + 1) and t not in '\t\n\r':
                        editor.changeInsertion('')
            
            editor.callbackSync(modified_callback, [SCINTILLANOTIFICATION.MODIFIED])  # must be callbackSync!
            

            Some notes on PythonScript are found HERE.

            Alan KilbornA 1 Reply Last reply Reply Quote 3
            • Alan KilbornA
              Alan Kilborn @Alan Kilborn
              last edited by Alan Kilborn

              @datatraveller1 said:

              Shift+Ctrl+B prints STX

              Note that in Notepad++ 8.5 and later, Shift+Ctrl+B is the default keycombo for Begin/End Select :

              2b334d5d-6653-4060-9de5-8038e03a71bd-image.png

              So this keycombo will no longer insert a STX character into documents when typed.

              1 Reply Last reply Reply Quote 2
              • Alan KilbornA Alan Kilborn referenced this topic on
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors