Notepad Ctrl-Backspace behavior












21















Text fields in almost all software erase a word when ctrl+backspace is pressed. However, Notepad behaves differently, and inserts a character which is:

`` (I copy-pasted it here. I'm not sure if it is visible. It looks like a rectangle in Notepad.)



Here is a screenshot:



ctrl+bksp




  • What is this character?

  • Why does Notepad do this? Is it simpler to implement?

  • Are there other key combinations for other characters?

  • Is there a key combination in Notepad for erasing a word?










share|improve this question



























    21















    Text fields in almost all software erase a word when ctrl+backspace is pressed. However, Notepad behaves differently, and inserts a character which is:

    `` (I copy-pasted it here. I'm not sure if it is visible. It looks like a rectangle in Notepad.)



    Here is a screenshot:



    ctrl+bksp




    • What is this character?

    • Why does Notepad do this? Is it simpler to implement?

    • Are there other key combinations for other characters?

    • Is there a key combination in Notepad for erasing a word?










    share|improve this question

























      21












      21








      21


      5






      Text fields in almost all software erase a word when ctrl+backspace is pressed. However, Notepad behaves differently, and inserts a character which is:

      `` (I copy-pasted it here. I'm not sure if it is visible. It looks like a rectangle in Notepad.)



      Here is a screenshot:



      ctrl+bksp




      • What is this character?

      • Why does Notepad do this? Is it simpler to implement?

      • Are there other key combinations for other characters?

      • Is there a key combination in Notepad for erasing a word?










      share|improve this question














      Text fields in almost all software erase a word when ctrl+backspace is pressed. However, Notepad behaves differently, and inserts a character which is:

      `` (I copy-pasted it here. I'm not sure if it is visible. It looks like a rectangle in Notepad.)



      Here is a screenshot:



      ctrl+bksp




      • What is this character?

      • Why does Notepad do this? Is it simpler to implement?

      • Are there other key combinations for other characters?

      • Is there a key combination in Notepad for erasing a word?







      shortcuts notepad characters control-characters






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 5 '11 at 8:52









      musamusa

      3711317




      3711317






















          2 Answers
          2






          active

          oldest

          votes


















          23















          1. It's 0x7F "Delete" in ASCII and U+007F "Delete" in Unicode.



          2. It's in fact lack of an implementation. Plain Backspace sends an ASCII 0x08 (I'm not sure how the Edit control handles it internally), and it is not uncommon in various operating systems for CtrlBackspace to send the "Delete" sequence.



            The "delete word" behavior was added later, as an undocumented feature, and only to those Edit controls which use "SHAutoComplete". If a textbox has autocompletion disabled, CtrlBackspace will likely not work.



            (SomeMany programs implement their own text editing controls, which work slightly differently from the built-in one.)




          3. CtrlJ and CtrlM will get translated to a newline (^J is CR in ASCII and ^M is LF; however, the Edit control translates both keypresses to CR+LF.) Similarly, CtrlI inserts a Tab character.



            Ctrl_ and Ctrl^ will result in somewhat useless "Unit separator" (^_) and "Record separator" (^^).



            (The ^X notation means the Ctrl key – Ctrl-X in this example – in ASCII this is equivalent to unsetting the 7th bit of the following character.)




          4. No, but you can use CtrlShift← Left to select the previous word, and overwrite by typing.



            Or get a better Notepad.








          share|improve this answer


























          • Thanks for the response grawity. But I don't understand why you rejected @RJFalconer's edit. [Ctrl][Left] does not select without [Shift].

            – musa
            Sep 6 '11 at 6:48













          • @musa: I didn't, that just happens when two people are editing at once.

            – grawity
            Sep 6 '11 at 7:36











          • Just for the record: Notepad2 has exactly the same problem in the Find and Replace Text dialogs that Notepad(++) has, Ctrl-Backspace does not delete the previous word. The workaround works perfect, thanks.

            – Michael S.
            Sep 5 '18 at 4:05





















          1














          Ctrl-Backspace to delete a word in Notepad has been finally been implemented!



          See the changes to Notepad in Windows 10 version 1809. Here






          share|improve this answer
























          • Wow, finally! Even though I rarely use plain notepad (when I forgot to change the default app to open with) I‘m still annoyed. I should install this update then. For anyone coming here in the future: 1809 was rolled out in November 2018.

            – bugybunny
            Jan 15 at 10:38













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f332026%2fnotepad-ctrl-backspace-behavior%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          23















          1. It's 0x7F "Delete" in ASCII and U+007F "Delete" in Unicode.



          2. It's in fact lack of an implementation. Plain Backspace sends an ASCII 0x08 (I'm not sure how the Edit control handles it internally), and it is not uncommon in various operating systems for CtrlBackspace to send the "Delete" sequence.



            The "delete word" behavior was added later, as an undocumented feature, and only to those Edit controls which use "SHAutoComplete". If a textbox has autocompletion disabled, CtrlBackspace will likely not work.



            (SomeMany programs implement their own text editing controls, which work slightly differently from the built-in one.)




          3. CtrlJ and CtrlM will get translated to a newline (^J is CR in ASCII and ^M is LF; however, the Edit control translates both keypresses to CR+LF.) Similarly, CtrlI inserts a Tab character.



            Ctrl_ and Ctrl^ will result in somewhat useless "Unit separator" (^_) and "Record separator" (^^).



            (The ^X notation means the Ctrl key – Ctrl-X in this example – in ASCII this is equivalent to unsetting the 7th bit of the following character.)




          4. No, but you can use CtrlShift← Left to select the previous word, and overwrite by typing.



            Or get a better Notepad.








          share|improve this answer


























          • Thanks for the response grawity. But I don't understand why you rejected @RJFalconer's edit. [Ctrl][Left] does not select without [Shift].

            – musa
            Sep 6 '11 at 6:48













          • @musa: I didn't, that just happens when two people are editing at once.

            – grawity
            Sep 6 '11 at 7:36











          • Just for the record: Notepad2 has exactly the same problem in the Find and Replace Text dialogs that Notepad(++) has, Ctrl-Backspace does not delete the previous word. The workaround works perfect, thanks.

            – Michael S.
            Sep 5 '18 at 4:05


















          23















          1. It's 0x7F "Delete" in ASCII and U+007F "Delete" in Unicode.



          2. It's in fact lack of an implementation. Plain Backspace sends an ASCII 0x08 (I'm not sure how the Edit control handles it internally), and it is not uncommon in various operating systems for CtrlBackspace to send the "Delete" sequence.



            The "delete word" behavior was added later, as an undocumented feature, and only to those Edit controls which use "SHAutoComplete". If a textbox has autocompletion disabled, CtrlBackspace will likely not work.



            (SomeMany programs implement their own text editing controls, which work slightly differently from the built-in one.)




          3. CtrlJ and CtrlM will get translated to a newline (^J is CR in ASCII and ^M is LF; however, the Edit control translates both keypresses to CR+LF.) Similarly, CtrlI inserts a Tab character.



            Ctrl_ and Ctrl^ will result in somewhat useless "Unit separator" (^_) and "Record separator" (^^).



            (The ^X notation means the Ctrl key – Ctrl-X in this example – in ASCII this is equivalent to unsetting the 7th bit of the following character.)




          4. No, but you can use CtrlShift← Left to select the previous word, and overwrite by typing.



            Or get a better Notepad.








          share|improve this answer


























          • Thanks for the response grawity. But I don't understand why you rejected @RJFalconer's edit. [Ctrl][Left] does not select without [Shift].

            – musa
            Sep 6 '11 at 6:48













          • @musa: I didn't, that just happens when two people are editing at once.

            – grawity
            Sep 6 '11 at 7:36











          • Just for the record: Notepad2 has exactly the same problem in the Find and Replace Text dialogs that Notepad(++) has, Ctrl-Backspace does not delete the previous word. The workaround works perfect, thanks.

            – Michael S.
            Sep 5 '18 at 4:05
















          23












          23








          23








          1. It's 0x7F "Delete" in ASCII and U+007F "Delete" in Unicode.



          2. It's in fact lack of an implementation. Plain Backspace sends an ASCII 0x08 (I'm not sure how the Edit control handles it internally), and it is not uncommon in various operating systems for CtrlBackspace to send the "Delete" sequence.



            The "delete word" behavior was added later, as an undocumented feature, and only to those Edit controls which use "SHAutoComplete". If a textbox has autocompletion disabled, CtrlBackspace will likely not work.



            (SomeMany programs implement their own text editing controls, which work slightly differently from the built-in one.)




          3. CtrlJ and CtrlM will get translated to a newline (^J is CR in ASCII and ^M is LF; however, the Edit control translates both keypresses to CR+LF.) Similarly, CtrlI inserts a Tab character.



            Ctrl_ and Ctrl^ will result in somewhat useless "Unit separator" (^_) and "Record separator" (^^).



            (The ^X notation means the Ctrl key – Ctrl-X in this example – in ASCII this is equivalent to unsetting the 7th bit of the following character.)




          4. No, but you can use CtrlShift← Left to select the previous word, and overwrite by typing.



            Or get a better Notepad.








          share|improve this answer
















          1. It's 0x7F "Delete" in ASCII and U+007F "Delete" in Unicode.



          2. It's in fact lack of an implementation. Plain Backspace sends an ASCII 0x08 (I'm not sure how the Edit control handles it internally), and it is not uncommon in various operating systems for CtrlBackspace to send the "Delete" sequence.



            The "delete word" behavior was added later, as an undocumented feature, and only to those Edit controls which use "SHAutoComplete". If a textbox has autocompletion disabled, CtrlBackspace will likely not work.



            (SomeMany programs implement their own text editing controls, which work slightly differently from the built-in one.)




          3. CtrlJ and CtrlM will get translated to a newline (^J is CR in ASCII and ^M is LF; however, the Edit control translates both keypresses to CR+LF.) Similarly, CtrlI inserts a Tab character.



            Ctrl_ and Ctrl^ will result in somewhat useless "Unit separator" (^_) and "Record separator" (^^).



            (The ^X notation means the Ctrl key – Ctrl-X in this example – in ASCII this is equivalent to unsetting the 7th bit of the following character.)




          4. No, but you can use CtrlShift← Left to select the previous word, and overwrite by typing.



            Or get a better Notepad.









          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 6 '11 at 7:37

























          answered Sep 5 '11 at 9:16









          grawitygrawity

          237k37503557




          237k37503557













          • Thanks for the response grawity. But I don't understand why you rejected @RJFalconer's edit. [Ctrl][Left] does not select without [Shift].

            – musa
            Sep 6 '11 at 6:48













          • @musa: I didn't, that just happens when two people are editing at once.

            – grawity
            Sep 6 '11 at 7:36











          • Just for the record: Notepad2 has exactly the same problem in the Find and Replace Text dialogs that Notepad(++) has, Ctrl-Backspace does not delete the previous word. The workaround works perfect, thanks.

            – Michael S.
            Sep 5 '18 at 4:05





















          • Thanks for the response grawity. But I don't understand why you rejected @RJFalconer's edit. [Ctrl][Left] does not select without [Shift].

            – musa
            Sep 6 '11 at 6:48













          • @musa: I didn't, that just happens when two people are editing at once.

            – grawity
            Sep 6 '11 at 7:36











          • Just for the record: Notepad2 has exactly the same problem in the Find and Replace Text dialogs that Notepad(++) has, Ctrl-Backspace does not delete the previous word. The workaround works perfect, thanks.

            – Michael S.
            Sep 5 '18 at 4:05



















          Thanks for the response grawity. But I don't understand why you rejected @RJFalconer's edit. [Ctrl][Left] does not select without [Shift].

          – musa
          Sep 6 '11 at 6:48







          Thanks for the response grawity. But I don't understand why you rejected @RJFalconer's edit. [Ctrl][Left] does not select without [Shift].

          – musa
          Sep 6 '11 at 6:48















          @musa: I didn't, that just happens when two people are editing at once.

          – grawity
          Sep 6 '11 at 7:36





          @musa: I didn't, that just happens when two people are editing at once.

          – grawity
          Sep 6 '11 at 7:36













          Just for the record: Notepad2 has exactly the same problem in the Find and Replace Text dialogs that Notepad(++) has, Ctrl-Backspace does not delete the previous word. The workaround works perfect, thanks.

          – Michael S.
          Sep 5 '18 at 4:05







          Just for the record: Notepad2 has exactly the same problem in the Find and Replace Text dialogs that Notepad(++) has, Ctrl-Backspace does not delete the previous word. The workaround works perfect, thanks.

          – Michael S.
          Sep 5 '18 at 4:05















          1














          Ctrl-Backspace to delete a word in Notepad has been finally been implemented!



          See the changes to Notepad in Windows 10 version 1809. Here






          share|improve this answer
























          • Wow, finally! Even though I rarely use plain notepad (when I forgot to change the default app to open with) I‘m still annoyed. I should install this update then. For anyone coming here in the future: 1809 was rolled out in November 2018.

            – bugybunny
            Jan 15 at 10:38


















          1














          Ctrl-Backspace to delete a word in Notepad has been finally been implemented!



          See the changes to Notepad in Windows 10 version 1809. Here






          share|improve this answer
























          • Wow, finally! Even though I rarely use plain notepad (when I forgot to change the default app to open with) I‘m still annoyed. I should install this update then. For anyone coming here in the future: 1809 was rolled out in November 2018.

            – bugybunny
            Jan 15 at 10:38
















          1












          1








          1







          Ctrl-Backspace to delete a word in Notepad has been finally been implemented!



          See the changes to Notepad in Windows 10 version 1809. Here






          share|improve this answer













          Ctrl-Backspace to delete a word in Notepad has been finally been implemented!



          See the changes to Notepad in Windows 10 version 1809. Here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 14 at 19:09









          jonjon

          111




          111













          • Wow, finally! Even though I rarely use plain notepad (when I forgot to change the default app to open with) I‘m still annoyed. I should install this update then. For anyone coming here in the future: 1809 was rolled out in November 2018.

            – bugybunny
            Jan 15 at 10:38





















          • Wow, finally! Even though I rarely use plain notepad (when I forgot to change the default app to open with) I‘m still annoyed. I should install this update then. For anyone coming here in the future: 1809 was rolled out in November 2018.

            – bugybunny
            Jan 15 at 10:38



















          Wow, finally! Even though I rarely use plain notepad (when I forgot to change the default app to open with) I‘m still annoyed. I should install this update then. For anyone coming here in the future: 1809 was rolled out in November 2018.

          – bugybunny
          Jan 15 at 10:38







          Wow, finally! Even though I rarely use plain notepad (when I forgot to change the default app to open with) I‘m still annoyed. I should install this update then. For anyone coming here in the future: 1809 was rolled out in November 2018.

          – bugybunny
          Jan 15 at 10:38




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f332026%2fnotepad-ctrl-backspace-behavior%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

           ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕