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

Almost perfect on UK layouts #2

Closed AlexBlandin closed 5 years ago

AlexBlandin commented 6 years ago

Love the plugin, however UK layouts have a different position for the speech & quote marks, where speech marks are "SHIFT + 2", and while quote appears on the same physical position, logically it maps to the US "#". Is there some way to see what npp parses from the input to give a locale-independent mapping?

dail8859 commented 6 years ago

Thanks for the info!

The way the plugin works is that it captures the keyboard input before Notepad++ gets a chance to process it. Right now it is very simplistic in how it catches the keyboard input and determines what "character" is typed.

I'm assuming there are some Win32 APIs that could be used to map raw keyboard input, to a specific "character" given the current keyboard layout. Unfortunately I'm not sure how to do that...and don't have alot of free time currently to investigate it more.

It is likely this issue and #1 could be solved by the same solution.

AlexBlandin commented 5 years ago

Works perfectly!