Community
    • Login

    Cannot type " [ " - left square bracket.

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 5 Posters 1.4k 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.
    • prototype+P
      prototype+
      last edited by

      Cannot type " [ " - left square bracket. No problem with typing “]” - right square bracket.

      5efe9210-761c-405e-9ca3-fa8b62d3e6b2-image.png

      The hotkey ctrl + alt + F works in every other application (notepad, Atom), even works in every other pop up window in np++ (pic below)

      8bfc2df6-3ac5-4569-9f0b-eda77ca66cd3-image.png

      The only other open topic on this questions suggested that this combination (ctrl + alt + F) might be used somewhere else, but I could not find anything in the Shortcut mapper

      Any idea?

      ----------------

      Notepad++ v8.2 (64-bit)
      Build time : Dec 30 2021 - 03:40:42
      Path : C:\Program Files\Notepad++\notepad++.exe
      Command Line :
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      OS Name : Windows 10 Pro (64-bit)
      OS Version : 2009
      OS Build : 19042.1466
      Current ANSI codepage : 1252
      Plugins : mimeTools.dll NppConverter.dll NppExport.dll

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @prototype+
        last edited by

        @prototype

        How is this:

        Cannot type " [ " - left square bracket.

        related to this:

        The hotkey ctrl + alt + F

        1 Reply Last reply Reply Quote 1
        • prototype+P
          prototype+
          last edited by

          @alan-kilborn

          The combo “ctrl + alt + F” results in “[” when I try it in notepad, or in Atom or even in nt++ (the second pic in the original post), but nothing happens when using this combo in the main window…

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @prototype+
            last edited by

            @prototype said in Cannot type " [ " - left square bracket.:

            @alan-kilborn

            The combo “ctrl + alt + F” results in “[” when I try it in notepad, or in Atom or even in nt++ (the second pic in the original post), but nothing happens when using this combo in the main window…

            ctrl + alt + F does no such thing in Windows Notepad (notepad.exe) or any other program on my computer. In fact, in notepad.exe, it does absolutely nothing. If you have some external program whcih re-maps that key combo to type [, I would wonder why, but it’s not out of the realm of technical possibility.

            In default in Notepad++, that keystroke is aliased to View > Collapse Current Level, which has to do with code folding.
            ed522520-eaa5-428d-8472-5ef1ac0a3bde-image.png

            The way to type a [ in Notepad++ or any other program is to use the [ key on your keyboard.

            If you have some external program that’s trying to hijack ctrl + alt + F to type a single key, the Notepad++ shorcut assignment might be taking precedence, thus not letting the external program do its thing. If you really want the shortcut to be handled by the external program rather than by Notepad++, then use the Shortcut Mapper to change the shortcut on Collapse Current Level

            482ceb13-119f-48b2-9baf-b15e4908557e-image.png

            prototype+P 1 Reply Last reply Reply Quote 0
            • prototype+P
              prototype+ @PeterJones
              last edited by

              @peterjones

              Changing the shortcut to Collapse Current Level did the trick. Thanks.

              The ctrl+alt+F combo probably does nothing in your case, perhaps because you have a different keyboard language setup? The combo ctrl + alt +G also does not return the “]” in that case, as does in mine.

              IamAlsoDavidI 1 Reply Last reply Reply Quote 0
              • IamAlsoDavidI
                IamAlsoDavid @prototype+
                last edited by

                @prototype
                The keyboard selection solved this for me. This would happen in Notepad++ and other programs. I had ENG English (United States) Yoruba selected. When I switched to ENG English (United States) US the problem went away. Thx!

                1 Reply Last reply Reply Quote 0
                • PeterAdamP
                  PeterAdam
                  last edited by

                  Ctrl + Alt + F is analog to AltGr (see /wiki/AltGr_key) + F, which is the [ character on my keyboard, which has Hungarian (QWERTZ, see /wiki/QWERTZ#Variants) layout.

                  By chance you are using German, … keyboard layout? Germans seems to suffer from the Ctrl + Alt hotkeys, too.

                  Or accidentally pressed left Alt+Shift which is the default keyboard layout changer hotkey, a mistake alone.

                  Developers, please avoid Ctrl + Alt hotkeys, or at least make a “Do not use Ctrl + Alt hotkeys” option in your text editor. Then there only remains AMD to steal the keys :)

                  Notable symbols reachable via Ctrl+Alt (AltGr) are []$<>#&@{};

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

                    @PeterAdam said in Cannot type " [ " - left square bracket.:

                    Developers, please avoid Ctrl + Alt hotkeys, or at least make a “Do not use Ctrl + Alt hotkeys” option in your text editor.

                    Notepad++ is such a mature product, and so many keycombos are already taken, that IMO new features should not have a new keycombo invented and assigned for them, instead relying on end users to pick something and assign it themselves.

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