dail8859 / SurroundSelection

Notepad++ plugin to automatically surround the selection in quotes/brackets/parenthesis
GNU General Public License v2.0
55 stars 5 forks source link

test for italian layout #1

Closed giorgiobeggiora closed 5 years ago

giorgiobeggiora commented 6 years ago

Hi, i don't know how to develop a plugin but i can help testing the Italian keyboard layout.

dail8859 commented 6 years ago

You are certainly welcome to test it out. You can install it via the releases page or the plugin manager from within Notepad++.

If it works with your keyboard layout then great...if not then some modifications would need done to the plugin since it hooks the keyboard input, and it would require making sure it is catching the right keyboard inputs from they layout.

giorgiobeggiora commented 6 years ago

Sorry for the late response.

Actually, this is the situation of the italian keyboard when i press a key on selected text:

key         ' outputs []
key SHIFT + ' outputs []
key SHIFT + 9 outputs ()
key SHIFT + 0 outputs ()
key         à outputs ''
key SHIFT + à outputs ""

I went to http://keycode.info/ and i noted the key codes of the italian layout

        ALT GR + 186 ---> [
SHIFT + ALT GR + 186 ---> {
        ALT GR + 187 ---> ]
SHIFT + ALT GR + 187 ---> }
                 219 ---> '
SHIFT +           50 ---> "
SHIFT +           56 ---> (
SHIFT +           57 ---> )
dail8859 commented 6 years ago

@giorgiobeggiora I think a long term solution would be to use whatever Win32 API is available to handle various keyboard layouts...I have no clue how to do this at all yet. The info you provided will help with testing.

giorgiobeggiora commented 6 years ago

Thank you