Tapatalk

UltraEdit randomly jumps to top on keystroke

UltraEdit randomly jumps to top on keystroke

10
Basic UserBasic User
10

    Oct 02, 2018#1

    Hello. I work a lot in UltraEdit, several hours a day and sometimes, in the middle of my typing, the cursor suddenly jumps to the top, like I pressed Ctrl-Home. The behavior occurs randomly, it doesn't matter what I type. I first thought there was something wrong with my keyboard so I switched it, but nothing changed. Its very annoying, when I'm in a long document and writing some complicated code, to find that some of the code ends up at the top and I have to undo to go back and continue.

    Is this a bug or a setting or something else? Did somebody else have this problem? What can I do?

    6,685587
    Grand MasterGrand Master
    6,685587

      Oct 02, 2018#2

      In more than 10 years nobody has ever reported such an unexpected behavior of UltraEdit in user-to-user forum.

      Is the caret really at line 1 column 1 when this happens, i.e. like Ctrl+Home is pressed?

      Do you have the document map visible and unintentionally perform a click on it with resulting in scrolling to top?

      What actions do you have configured for the mouse buttons other than primary (left) and secondary (right) button?

      Has your PC a touch pad or a touch screen and you execute by accident the gesture to execute moving caret to top of file?

      I suggest to look on mouse / touch pad / touch screen settings and which actions / gestures are enabled on which you are not aware of.

      You might check the UltraEdit setting Disable drag & drop at Advanced - Settings or Configuration - Editor - Miscellaneous and see if that makes a change.
      Best regards from an UC/UE/UES for Windows user from Austria

      19176
      MasterMaster
      19176

        Oct 04, 2018#3

        Hi Raplhe, my intuition says - try classic theme.

        BTW: The problem occurs when you edit files which are stored locally or somewhere on the net?

        BR, Fleggy

        10
        Basic UserBasic User
        10

          Oct 04, 2018#4

          Hi again Mofi, sorry for the delay. The answer to your questions:
          Yes, the caret is really on line 1 column 1, exactly like pressing Ctrl+Home.
          Yes, the document map is visible, its a nice function that I use now and then, but I don't accidentally click on it because I do not even touch the mouse, this thing only happens when I'm typing with both my hands on the keyboard.
          There is no specific action configured for the mouse buttons, its just a standard USB mouse (and standard USB keyboard).
          There is no touch pad or touch screen.
          I disabled the drag and drop setting and tested like you said. But it happens anyway, so I will enable it back because I use drag and drop from time to time.

          And yes, Fleggy, I already use the classic theme. Only local files.

          This is really weird. I tried before to change the keyboard, I will also try with another mouse. Maybe it sends some random signals that I'm not aware of.

          19176
          MasterMaster
          19176

            Oct 04, 2018#5

            Hmm, then I would try some key logger with a short buffer to check scan codes. And did you try another editor?

            6,685587
            Grand MasterGrand Master
            6,685587

              Oct 05, 2018#6

              Do you have any macro file configured for being automatically loaded on startup of UltraEdit which contains one or more macros with hotkeys/chords assigned containing the command Top or Key Ctrl+HOME?

              Do you have scripts added to scripts list with hotkeys/chords assigned containing a command moving caret to top?

              Open Advanced - Settings or Configuration - Key mapping, click on button Show key mapping in editor, close configuration with button Cancel and look line by line on created text file with all the currently active key mappings including macros and scripts.
              Best regards from an UC/UE/UES for Windows user from Austria

              10
              Basic UserBasic User
              10

                Oct 05, 2018#7

                Don't know much about key loggers because of having never used one. And yes, I tried some other editors like Atom, Sublime and Notepad and WordPad of different kinds, but never long enough for this to appear. UE is my main editor for years now and its hard to change that. My UltraEdit version is 24.20.0.62.

                I have a macro that loads at startup, but that only contains some char conversions (åäö to &aring, &auml and so on), which I copied from this forum from a post from you, Mofi. No more macros or hot keys, not any Top command or Key Ctrl+HOME.

                I changed some shortcuts in Key mapping:
                • Ctrl+Divide to comment selected text,
                • Ctrl+Shift+Divide to uncomment,
                • Alt+Divide to comment selection and
                • Alt+Shift+Divide to uncomment selection.
                I also have some templates that I configured myself, about 10 or so, and they all contain either HTML or PHP code, no scripts, no hotkeys or anything else.

                I changed to another mouse and the same thing happened again anyway.
                uedit64u.shortcuts.txt (17.42 KiB)   63

                6,685587
                Grand MasterGrand Master
                6,685587

                  Oct 06, 2018#8

                  Ah, okay, you use key Divide on numeric keypad. Most keys on numeric keypad have two different key codes depending on keyboard layout and state of Num lock.

                  For example on German keyboard with Num lock not enabled the key codes of following key changes:

                  1 ... End
                  2 ... Down arrow
                  3 ... PgDn
                  4 ... Left Arrow
                  5 ... Clear
                  6 ... Right Arrow
                  7 ... Home
                  8 ... Up Arrow
                  9 ... PgUp

                  So I suggest to press Ctrl+Divide with Num lock enabled and selected code. Next disable Num lock and press once again Ctrl+Divide. If this is resulting in moving caret to top of the file, then alternate key code for Divide on numeric keypad is Home on your keyboard.
                  Best regards from an UC/UE/UES for Windows user from Austria

                  10
                  Basic UserBasic User
                  10

                    Oct 16, 2018#9

                    There is no difference if I have Num lock on or off. Both ways works as expected, commenting the line or the selection. Shift+Ctrl+Divide then uncomments it again. I have a Swedish keyboard.

                    6,685587
                    Grand MasterGrand Master
                    6,685587

                      Oct 16, 2018#10

                      Just to be 100% sure: You are using this Swedish keyboard which is very similar to this German keyboard?

                      I prefer German IBM (same hardware).

                      And you do not accidentally switch input language for active application (UltraEdit) by key as described for example by article 3 Ways to Switch Input Methods on Windows 10?

                      Pressing Alt+Shift and leaving the two keys without pressing any additional key switches the input language for the currently active application if multiple keyboard layouts (input languages) are installed as by default for non US countries. In Windows task bar there is the two or three letter input language indication. I have seen many people in Austria switching by accident with key the input language for active application from Germany (DE or DEU displayed on Windows task bar) to English US which is always also installed by default (EN or ENU displayed on Windows task bar) and wonder why some keys do not work as expected in active application while in other applications (DE/DEU displayed on Windows task bar after switching to other application) the same key works as expected. Whenever I was asked for help on this issue, I solved it my removing all other input languages (keyboard layouts) than the one really used by the PC user according to used keyboard which disables the hotkey to switch input language as there is not anymore a second one.
                      Best regards from an UC/UE/UES for Windows user from Austria

                      19176
                      MasterMaster
                      19176

                        Oct 16, 2018#11

                        Are you using Ctrl+<Num 7> for some operation? Perhaps it rarely generates Ctrl+HOME.

                        10
                        Basic UserBasic User
                        10

                          Oct 25, 2018#12

                          I'm using a Swedish HP keyboard. I don't know the similarity to German keyboards. I have already disabled other input languages like you have described. I tried to press all the combinations (including Ctrl+<Num 7>, Fleggy), but nothing happens.
                          20181025_190707.jpg (1.47MiB)

                          6,685587
                          Grand MasterGrand Master
                          6,685587

                            Oct 26, 2018#13

                            I suggest next to open Graphic Settings by right clicking on a free area on Windows desktop and left click on this context menu item. This action opens the graphic settings application of installed video adapter driver/application suite. The installed video adapter driver/application suite has usually an Options and Support item on which a Hot Key Manager can be customized. The hot key manager is an application installed with video driver running in background to perform display related actions on pressing certain hot keys. I don't expect an effect by these hot keys with UltraEdit, but better cross-check the hot keys set by the hot key manager of used video adapter. I have them all disabled on my PCs as I never use them and disabled also start of the hot key manager program on startup of Windows to decrease Windows startup time.

                            Further I suggest to click on Windows Start button on using Windows 7, click into edit field Search programs and files, type msconfig and execute this Microsoft application. On Windows 8 and later Windows versions open Task Manager with Ctrl+Alt+Del or by right clicking on a free area of Windows task bar and clicking in context menu on Start Task Manager. In started System Configuration or Windows Task Manager click on tab Startup. You can see now which applications are started on Windows start and you can uncheck them. I suggest to uncheck all with exception of anti-virus/anti-malware application, click on button OK and restart Windows. Then work some days with UltraEdit without all those applications started usually during Windows start and see if that makes a difference. You can re-enable any startup of an application at any time the same way as on disabling it in case of missing a feature you use often which requires that one of those applications currently not anymore started automatically needs to be started on Windows start.

                            There is also free Autoruns of Sysinternals (Microsoft) which lists really everything loaded or started on Windows start including services and drivers if you are interested in.
                            Best regards from an UC/UE/UES for Windows user from Austria

                            10
                            Basic UserBasic User
                            10

                              Oct 27, 2018#14

                              Okay, here is some information: I use Windows 10 Home v1803, Wamp server 3.1.3, UE 24.20.0.62. Graphics card: Nvidia GForce GT 720 and two screens: BenQ G2420HDBL (Digital) and Dell 1907FP (Analog).

                              I looked in Windows graphic settings and Nvidias control panel, but I could not find any Hot Key Manager. If there were one, wouldn't it be possible to recreate the error? I can't do that. It happens randomly, and I cant find any key combinations that triggers it.

                              I try to keep my system clean from unnecessary startup items at all times. The only two that are, and has been activated, are Avast Antivirus and Windows Defender.

                              Thank you for your persistent help!

                              6,685587
                              Grand MasterGrand Master
                              6,685587

                                Oct 27, 2018#15

                                Okay, application suite for Intel and AMD video adapters have a customizable hot key manager, but not the Nvidia application suite as far as I could find out with some quick internet searches. Nvidia 3D Vision seems to define hot keys, but not easy customizable for a user according to blog Modifying all 3D Vision control key combinations as you need. I think, we can forget this potential source for the problems. The Nvidia application suite is most likely not the source of moving sometimes unexpected the caret to top of file.

                                I get more and more the impression that an unknown multi-key assignment not listed in file uedit64u.uek could be the reason for this very hard to find issue.

                                I suggest following:
                                1. Exit all running instances of UltraEdit.
                                2. Open the folder %APPDATA%\IDMComp\UltraEdit in Windows Explorer or your favorite file manager.
                                3. Rename the file uedit64u.shortcuts.txt for example to UltraEdit_Shortcuts.txt.
                                4. Delete the file uedit64u.uek and all other *.uek and *.kbd files still existing perhaps from older versions of UltraEdit.
                                5. Start UltraEdit, open Advanced - Settings or Configuration - Key mapping and customize once again the key assignments.
                                The button Show key mapping in editor can be used to recreate uedit64u.shortcuts.txt after key mapping customization. This file should be compared with UltraEdit_Shortcuts.txt to verify if no customization was forgotten on redoing the key mapping customization.

                                I recommend on key mapping customization to avoid that Ctrl+P is used for command Print and chord Ctrl+P, Ctrl+S is used for command Persistent selection. This is the default key mapping of both commands, but I think, this default is not good. Better would be to use for Persistent selection something unique like Ctrl+Shift+E or Ctrl+Shift+L.

                                Please note the following commands as listed in file uedit64u.shortcuts.txt with Num lock not enabled:
                                • Alt+Subtract ... Position active line at top of window ... Alt+<Num>
                                • Alt+Clear ... Position active line at center of window ... Alt+<Num>5
                                • Alt+Multiply ... Position active line at center of window ... Alt+<Num>×
                                • Alt+Add ... Position active line at bottom of window ... Alt+<Num>+
                                • Alt+Left Arrow ... Position cursor at previous paragraph start
                                • Alt+Right Arrow ... Position cursor at next paragraph start
                                • Alt+PgUp ... Position cursor at top of window
                                • Alt+PgDn ... Position cursor at bottom of window
                                Alt+PgUp can be the same as Ctrl+Home if the first displayed line is the first line in file.

                                And of course pressing Ctrl+G, 1, Return or Enter moves cursor also to top of the file.
                                Best regards from an UC/UE/UES for Windows user from Austria

                                Read more posts (1 remaining)