Menu

#1227 Right alt+n return the cursor to the beginning of the line

6.1
open
nobody
None
5
2026-02-28
2023-11-07
hubkow
No

On Windows 10, hitting right alt+n returns the cursor to the beginning of the line while editing a segment. This is troublesome, since the Polish keyboard layout right alt+n is a standard keystroke for typing "ń". This problem affects at least OmegaT 6.0.0. It does not occur on Linux or MacOS.

I do not see the relevant command for returning the cursor in the customization files:
https://github.com/omegat-org/omegat/tree/master/src/org/omegat/gui/main/MainMenuShortcuts.mac.properties
https://github.com/omegat-org/omegat/tree/master/src/org/omegat/gui/main/EditorShortcuts.properties

Yet even if the command were added to the files, it would be nice for right alt+n to work out of the box on Windows, because otherwise virtually any person translating into Polish would have to customize the files right after installing the program.

Discussion

  • Hiroshi Miura

    Hiroshi Miura - 2024-01-28

    I found wikipedia explanation of Ctrl-Alt as AltGR key.

    Ctrl+Alt

    Windows interprets Ctrl+Alt as AltGr, to accommodate some compact keyboards like those of netbooks which have neither the AltGr key nor a right-hand Alt key. Thus Ctrl+Alt+a has the same effect as AltGr+a. Because of this feature, Microsoft advises that Ctrl+Alt not be used as part of any application keyboard shortcut, as it would prevent typing the matching AltGr character on such keyboards.

    https://en.wikipedia.org/wiki/AltGr_key

     
    👍
    1
    • Jean-Christophe Helary

      Do you think we could have a separate list of shortcuts specific to Windows, like we have for macOS?

       
  • khagaroth

    khagaroth - 2025-04-06

    Currently there are 4 such offending shortcuts Ctrl+Alt+N, Ctrl+Alt+P, Ctrl+Alt+0, Ctrl+Alt+9. Fortunately, they are used for rarely used symbols in my language, but it's still annoying from time to time, especially if there are any variables using curly braces in the string as Ctrl+Alt+N is a closing curly brace.

    Also, typing Ctrl+Alt+N is currently causing an NPE error, but that got fixed by #1294 (github).

     

    Last edit: khagaroth 2025-04-06
    • Jean-Christophe Helary

      Could you propose a shortcut map that handles your issue and that we could distribute separately ?

       
      • khagaroth

        khagaroth - 2025-04-11

        "Ctrl+Alt+N" -> "Alt+Shift+N"
        "Ctrl+Alt+P" -> "Alt+Shift+P"
        "Ctrl+Alt+0" -> "Alt+Shift+0"
        "Ctrl+Alt+9" -> "Alt+Shift+9"

        "Alt+Shift+P" is used by Windows File Explorer, but shouldn't collide as long as that's not in focus. The other shortcuts are collision free.

         
  • Peter One

    Peter One - 2026-02-28

    In %appdata%, Roaming/OmegaT
    Create a file named MainMenuShortcuts.properties
    NOT .txt, should be next to omegat.prefs
    add 2 lines to remove this shortcut as there are no options to do that in Preferences:

    properties
    editorNextNoteMenuItem=ctrl alt M

    Save and restart the app

     

    Last edit: Peter One 2026-02-28

Log in to post a comment.

MongoDB Logo MongoDB