• Login
Community
  • Login

Change shortcut for zoom in / out - "Num +" and mouse wheel not available on laptop

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
shortcut keyshortcut mapperzoom
16 Posts 6 Posters 5.0k 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.
  • D
    dinkumoil @kofaysi
    last edited by May 31, 2019, 11:40 AM

    @kofaysi

    What is your keyboard loacale? Which key on a german keyboard has the same physical position like the + key on your keyboard?

    1 Reply Last reply Reply Quote 1
    • K
      kofaysi
      last edited by kofaysi May 31, 2019, 11:50 AM May 31, 2019, 11:50 AM

      The same as on your picture. I can write zuiopü+ in one row.

      There is an exception I found: ctrl + + on the German locale keyboard switches the zoom off, if it has been zoomed out before. Other locales do nothing even in this case.

      I had a chance to attach an external keyboard with a numpad and the combination of ctrl and the + symbol on the numpad worked as expected, zoom in. But using the + symbol on the same keyboard in combination with ctrl did nothing. M

      D 1 Reply Last reply May 31, 2019, 12:06 PM Reply Quote 0
      • D
        dinkumoil @kofaysi
        last edited by May 31, 2019, 12:06 PM

        @kofaysi

        You didn’t answer my question. Do you have a Czech keyboard? If yes, try to configure CTRL+1 as your shortcut.

        1 Reply Last reply Reply Quote 1
        • K
          kofaysi
          last edited by kofaysi May 31, 2019, 12:31 PM May 31, 2019, 12:30 PM

          I don’t know, I never though about the nationality of my keyboard. It might be English/Czech.

          Mapping ctrl+1 to zoom in works. But I’m totally confused and scared. So, the mapping ignores the actual language local layout to which I switched and used English default layout always? How come ctrl + - worked on the German and Czech layout? – the minus symbols are located at different locations than on the English.

          D 1 Reply Last reply May 31, 2019, 1:05 PM Reply Quote 2
          • D
            dinkumoil @kofaysi
            last edited by dinkumoil May 31, 2019, 1:06 PM May 31, 2019, 1:05 PM

            @kofaysi

            Some advices for the future. If you have a (computer) problem and ask for help you should follow these rules:

            1. Actually answer the questions you are asked for.
            2. Answer them as exact as possible (e.g. there is no “English/Czech” keyboard, keyboards are english or czech).
            3. Read the answers you got thoroughly, try to understand them and to exactly follow the requested steps. If you haven’t understood any detail ask a question about that special detail.
            4. Provide exact information (maybe as a step-by-step sequence) about what you did beyond that what you have been told to do.

            If you would have followed only point 3., you would have solved your problem 4 days ago and I would have saved some time today which I spend to provide you further help.

            Nevertheless, nice to hear that you were able to solve this issue.

            1 Reply Last reply Reply Quote 2
            • K
              kofaysi
              last edited by kofaysi May 31, 2019, 1:49 PM May 31, 2019, 1:47 PM

              I’m sorry, but your answer and the suggested new settings opened a totally new world for me which I didn’t expect: the keymapping is bound to a hardware equipment(?) and to an absolute location of the key on the keyboard:

              • setting keymapping of zoom in to ctrl+1 (as suggested above and for all the keypressing and layouts mentioned in this post)
              • pressing position 1 in English mapping, when keyboard mapping is Czech (switching input method) displays: + which is absolutely correct
              • pressing the same position ctrl+1 in Czech, German and English keyboard mapping makes the window zoom in, which is confusing, because I have pressed ctrl+1 on the English mapping and at the same time ctrl++ on the remapped Czech keyboard. The keymapping should be of relative position too, not an absolute position.
              • pressing shift + position 1 in English mapping, when keyboard mapping is Czech (switching input method) displays: 1 which is also absolutely correct
              • pressing the same position ctrl+shift+1 in Czech, German and English keyboard mapping does not make the window zoom in, which is confusing, because I have pressed ctrl+1 on the remapped Czech keyboard and that should combination should zoom in. Again, the keymapping should be of relative position to the used input method, not an absolute position.

              I still do not understand, why ctrl++ mapping did not work in any of the mentioned keyboard layouts, previously. I’d love to have ctrl++ and remap the ctrl+1 back to style1.

              I have never considered the nationality or as you name it, the keyboard locale of my keyboards, which I used. How can I find it out, please? The keyboard locale meant the current language input method I switched to (e.g. by WIN+spacebar).The relative mapping of the keyboard always worked and keymapping was always relative to it.

              Note: Although my settings at https://notepad-plus-plus.org/community/ reads that I should be notified of new posts Follow topics you create and Follow topics that you reply to, I’m not notified at all. I should expect an e-mail notification, shan’t I?

              1 Reply Last reply Reply Quote 0
              • K
                kofaysi
                last edited by May 31, 2019, 1:58 PM

                I hope the concept will be changed and keymapping will be straightforward (and keyboard mapping dependent) so, it will not need such documentation obscurity. Notepad++ does not need such public shame and blame.

                1 Reply Last reply Reply Quote 0
                • N
                  notdodgeball
                  last edited by notdodgeball Feb 27, 2024, 12:41 PM Feb 27, 2024, 12:11 PM

                  Here the table for the Brazilian Portuguese layout (ABNT2) based on dinkumoil’s work:

                  |                     |   Pt/br Keyboard     |
                  | Npp shortcut mapper |---------+------------|--------------|--------------- |
                  |                     |  solo   | with SHIFT |  Virtual Key | KeyboardEvent  |
                  |---------------------+---------+------------|--------------|----------------|
                  |        ~            |  '      |    "       |  VK_OEM_3    |  Backquote     |
                  |        [            |  ´ (DK) |    ` (DK)  |  VK_OEM_4    |  BracketLeft   |
                  |        ]            |  [      |    {       |  VK_OEM_6    |  BracketRight  |
                  |        ;            |  ç      |    Ç       |  VK_OEM_1    |  Semicolon     |
                  |        '            |  ~ (DK) |    ^ (DK)  |  VK_OEM_7    |  Quote         |
                  |        \            |  ]      |    }       |  VK_OEM_5    |  Backslash     |
                  |        /            |  ;      |    :       |  VK_OEM_2    |  Slash         |
                  |        <>           |  \      |    |       |  VK_OEM_102  |  IntlBackslash |
                  |      Num .          |  Num ,  |    DEL     |  VK_DELETE   |  NumpadDecimal | *
                  |                     |  Num .  |            |  VK_ABNT_C2  |  NumpadComma   |
                  |                     |  /      |    ?       |  VK_ABNT_C1  |  IntlRo        |
                  
                  * Shortcuts using the Shift key don't work with the Numpad, are they being overridden by the driver?
                  

                  As a result, by using this layout one cannot bind commands to the / and Num . keys

                  P 1 Reply Last reply Feb 27, 2024, 2:02 PM Reply Quote 2
                  • P
                    PeterJones @notdodgeball
                    last edited by Feb 27, 2024, 2:02 PM

                    @notdodgeball ,

                    I added your post to the Keyboard Shortcut FAQ.

                    N 1 Reply Last reply Mar 6, 2024, 3:34 PM Reply Quote 0
                    • N
                      notdodgeball @PeterJones
                      last edited by Mar 6, 2024, 3:34 PM

                      @PeterJones Much appreciated

                      A few links for better understanding or future reference in the event or of a dev wanting to take a chance.

                      https://w3c.github.io/uievents-code/
                      https://jsfiddle.net/v1gz5c5m/1/
                      https://github.com/Microsoft/node-native-keymap

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