• Login
Community
  • Login

Ctrl + e and ctrl + shift + alt not working

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 3 Posters 3.7k 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.
  • 1
    123698741
    last edited by Feb 16, 2020, 2:07 AM

    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

    A 1 Reply Last reply Feb 16, 2020, 2:28 AM Reply Quote 1
    • A
      Alan Kilborn @123698741
      last edited by Alan Kilborn Feb 16, 2020, 2:28 AM Feb 16, 2020, 2:28 AM

      @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

      D 1 Reply Last reply Oct 26, 2022, 7:34 AM Reply Quote 4
      • D
        datatraveller1 @Alan Kilborn
        last edited by Oct 26, 2022, 7:34 AM

        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?

        A 1 Reply Last reply Oct 26, 2022, 11:56 AM Reply Quote 1
        • A
          Alan Kilborn @datatraveller1
          last edited by Oct 26, 2022, 11:56 AM

          @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.

          A 1 Reply Last reply Mar 3, 2023, 3:17 PM Reply Quote 3
          • A
            Alan Kilborn @Alan Kilborn
            last edited by Alan Kilborn Mar 3, 2023, 3:19 PM Mar 3, 2023, 3:17 PM

            @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
            • A Alan Kilborn referenced this topic on Nov 27, 2023, 7:50 PM
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors