61

I seem to have accidentally hit a couple hot-keys and my Notepad is now showing text from Right-to-Left.

What was the hot-key combo and what can I do to reverse it back to Left-to-Right?

Giacomo1968
  • 55,001
RLH
  • 4,425
  • Interestingly, for me this random switching occurs when I quickly press Win+Space, RightShift. But not when pressed slowly. This is some kind of notepad bug – Vladimir Pankov Feb 13 '24 at 09:13

8 Answers8

67

Right click anywhere in notepad and uncheck right-to-left reading

Greg
  • 4,488
  • 2
    Wow... I've never noticed that. Just for curiosity, do you know the hot-key equivelent? – RLH Aug 09 '11 at 19:17
  • 9
    @RLH It is apparently Right or Left Ctrl+Shift depending on which direction you want it, but it doesn't work for me – Greg Aug 09 '11 at 19:30
  • None of the shortcuts described in other answers worked for me in the standard Notepad (not Notepad++) version. You can however use Shift + F10 to open the context (or right-click) menu, then press R (if the operating system is English) or C (for the German version) to switch between the left to right and right to left reading orders. Note, that there are specific keyboards, having an extra key assigned to the context menu, see https://www.howtogeek.com/223037/is-there-a-keyboard-shortcut-that-can-be-used-in-place-of-the-context-menu-key/ – pholpar May 25 '20 at 19:33
  • @RHL and future readers suffering the same predicament: After a lot of experimenting, I DISCOVERED THE KEY COMBO! I had accidentally hit the Windows 'Menu' key (below right shift key), and then an 'r'...

    This toggles RTL and LTR typing. [Now I finally know what that mystery key does, too! LOL]

    I accidentally slipped while typing 'Exercise'; and the 'r' was the first hot 'letter' I happen to hit after the menu had appeared...

    The OP said Windows "Notepad". I found no key combinations of shift or control that duplicated this issue on "Notepad". Works on "Notepad"; Win 10 and Win 7.

    – troubleshooter Mar 22 '23 at 05:34
  • 3
    To turn off the Ctrl+RightShift hotkey (so you don't accidentally hit it) on Windows 10 or 11, open the Settings app, go to "Time & language" > "Typing" > "Advanced keyboard settings", click the "Input language hot keys" link, press the "Change Key Sequence..." button, and change "Switch Keyboard Layout" from "Ctrl+Shift" to "Not Assigned" – Tim Goodman Jan 25 '24 at 21:18
  • The setting above did not work for me on Windows 11. – Christian Shay Mar 18 '24 at 07:32
36

Hotkey combo:

  • To write text from Right to Left, try Ctrl + Right Shift.
  • To write text from Left to Right, try Ctrl + Left Shift.

Or simply open Notepad again.

Giacomo1968
  • 55,001
Technext
  • 477
  • 13
    What a stupid short-cut, that can be easily hit by accident – Paul C Apr 28 '15 at 09:59
  • 1
    You can prevent accidents with AutoHotkey: just add this line to a .ahk file and run it: ^RShift::return. This will completely disable the hotkey in all programs including Notepad. – Gogowitsch Jun 04 '15 at 19:30
  • I was excited by your autohotkey workaround, @gogowitsch. However I've found that it breaks ctrl+RShift+arrow for word highlighting, which I do a lot. I'm no AHK expert, anyone know how to tweak it to not have that problem? – Daryn Mar 23 '17 at 19:05
  • 6
    Okay I've found what seems to work for me. Instead of swallowing ctrl + RShift and that messing up select-word shortcut, map RShift to be LShift so I never get RTL by mistake. RShift::LShift – Daryn Mar 23 '17 at 19:22
  • 1
    this really should be the answer to this specific question. – Abdul-Kareem Abdul-Rahman Oct 18 '18 at 16:49
  • Steps to disable these hotkeys on Windows 10 or 11: Open the Settings app, go to "Time & language" > "Typing" > "Advanced keyboard settings", click the "Input language hot keys" link, press the "Change Key Sequence..." button, and change "Switch Keyboard Layout" from "Ctrl+Shift" to "Not Assigned" – Tim Goodman Jan 25 '24 at 21:19
  • The technical reason it's terrible design for me, is that during text editing: I routinely select text in single-lines with (default) shortcuts that are almost identical. I guess the Microsoft designer who decided this never uses selection (default) shortcuts. – j riv Mar 14 '24 at 10:50
  • 1
    Or, if possible, get a new editor and never open Notepad again. :) – Patrick Mar 19 '24 at 20:27
7

Try the following shortcuts:

Ctrl+Alt+R

Ctrl+Alt+L

Indrek
  • 24,424
Ddd
  • 97
4

For Notepad++ users, use the "View" menu (when shortcuts fail due to some conflicts):

enter image description here

P-S
  • 141
  • 1
    The original poster asked about Notepad. I assume this screenshot is from Notepad++, not from the version built-in in Windows. There are no such options in the menu of the standard version. – pholpar May 25 '20 at 19:02
  • 1
    Correct, updated the answer. As I also came up this post when searching for Notepad++, others might benefit from my answer as well. – P-S May 29 '20 at 07:46
1

As some may have been confused by the "specificity" of the Answer regarding the French version of Windows, and in keeping with the OP's actual question (and circumstance) the answer is as follows:

"Accidentally" 'hitting a couple of Hot Keys' causing the text to be Right Justified in Windows 7 Notepad was accomplished not by a "Hot Key" combination, (as some had suggested as CTRL-RShift or CTRL-Alt-R) but instead by using the Keyboard EQUIVALENT of [Right Click] & [Check]ing "Right to left Reading order".

This "accidental" keyboard sequence was [Menu Key] then [R].

To set things aright (using the keyboard, for the old-school typists), the sequence must repeated, i.e. [Menu Key] then [R].

To put out any "flames", let me reiterate; These steps are identical to the "Mouse-Centric" answer above, but in keeping with the OP's stated cause & problem.

oldITgeek
  • 11
  • 1
0

I think I found what the hotkey is to change the alignment on Notepad, and it's quite weird. I am on Windows 11 with default Notepad, UK keyboard.

CTRL + LSHIFT (i.e. either left or right control key and Left Shift) causes alignment left-to-right

CTRL + RSHIFT (i.e. either left or right control key and Right Shift) causes alignment right-to-left

Instead of using hotkeys, you can also just simply right click in Notepad and toggle Right-to-Left reading order

As another user suggested, you can use AHK to disable this annoying shortcut. Alternatively, Windows PowerToys also has a feature now to map hotkeys but might not be as good.

Toto
  • 17,839
Joe
  • 19
  • 2
0

To prevent this from ever happening again: Install PowerToys then configure the Keyboard Manager remapping the RShift to the LShift.

Giacomo1968
  • 55,001
ElderGod
  • 1
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community Mar 25 '24 at 13:00
0

To toggle between right and left text :

  1. strike the "menu" key (beside the space bar) - so you can see many options, with shortcuts underlined, like "Lecture de droite à gauche" in French

  2. strike the "L" key - in french version of Notepad - or an other letter if you have english or other language version

  • So you have translated accepted answer to keyboard? I think it should be a comment. – gronostaj Aug 08 '14 at 12:27
  • I have a french version of win7, who is released with a french version of Notepad. Shortly, in the french version of Notepad, strike successively "menu" key and "L" key to toggle between right and left text. You can easily find what is the second key to strike if you have an english version, isn't ? – Brett.fr Aug 08 '14 at 16:22
  • Yeah, I get what you mean, but it's basically the accepted answer with keypresses instead of clicks. Everyone who can use a keyboard efficiently would figure it out from the accepted answer. I don't think it's enough to post a separate answer. – gronostaj Aug 08 '14 at 16:58
  • Sorry if my response was obvious for all. – Brett.fr Aug 08 '14 at 20:24