dariusz_kotarba's profile

7 Messages

 • 

182 Points

Fri, Feb 10, 2012 7:33 AM

Closed

Solved

Lightroom: key conflict -> ctrl+alt+a is a polish letter

LR 3 / W7 - conflict - Ctrl+Alt+A = Polish letter ą. When I try to type polish name in edit field with letter ą, the beginning of this name is deleted, because of in LR clr+alt+a is a shortcut to "select flagged photos" command.

Official Solution

Adobe Administrator

 • 

16K Messages

 • 

296.7K Points

7 y ago

This should be fixed in Lightroom CC/Lightroom 6.

9 Messages

 • 

174 Points

8 y ago

This is seriously annoying, especially with metadata fields (title, caption, keywords, etc.). LR5 on Windows 7. The good news is that this can be overcome with a simple AutoHotKey script:

#IfWinActive ahk_class AgWinMainFrame
!a::SendInput {U+0105}
+!a::SendInput {U+0104}

All it does is capture AltGr+a and AltGr+Shift+a and send the respective Unicode characters in place of the original keystrokes. To retain compatibility with other programs, it only does that if Lightroom is the active window.

Adjust for other conflicting shortcuts accordingly.

4 Messages

 • 

94 Points

Sending unicode characters didn't work for me, after changing the script to send tilde+a/A works flawlessly:

#IfWinActive ahk_class AgWinMainFrame
!a::SendInput ~a
+!a::SendInput ~A

9 Messages

 • 

174 Points

Perhaps should have mentioned that you need the Unicode version of Autohotkey, available afaik at ahkscript.org

4 Messages

 • 

94 Points

But my version works anyway so no need for that ;) Now I've noticed that this forum messes up with less-than and greater-than signs, the correct script should be:

#IfWinActive ahk_class AgWinMainFrame
<^>!a::SendInput ~a
+<^>!a::SendInput ~A

Champion

 • 

6K Messages

 • 

103.7K Points

8 y ago

You could also edit the TranslatedStrings.txt file for your language and change the following line to use another keyboard shortcut:

"$$$/AgLibrary/Menu/File/Edit/SelectFlaggedPhotos/Key=Cmd+Option+a"

In Windows, the language files are locatedunder c:\program files\adobe\adobe photoshop lightroom 5.3\resources.

There is also the Keyboard Tamer plugin, but some people have reported problems using it in recent LR versions. I don't know its status.

4 Messages

 • 

94 Points

This solution is hard to use ase there is no Polish translation in Lightroom and there's no TranslatedStrings.txt for English language 99% of Polish people use.
AutoHotKey doesn't require modifiying Lightroom files and is 100% non-intrusive. TranslatedStrings.txt will probably get overwritten after each Lightroom upgrade.

Champion

 • 

6K Messages

 • 

103.7K Points

As discussed in later posts in this thread, making these additions to TranslatedStrings.txt doesn't fully fix the problem, and AutoHotkey is the only workaround that works.

22 Messages

 • 

302 Points

Install other things to solve problem in other software. This isn't good solution.

4 Messages

 • 

94 Points

It may not be good but it works and with the modified script I pasted above it preserves both AltGr+a mapping for ą and Ctrl+Alt+A mapping for "Select all flagged phots", so it's a win-win. The only solution without installing anything would be if Adobe fixed this in Lightroom which they didn't manage to for at least last 4 years. So you can either use this imperfect solution or wait, possibly forever, until Adobe does their job.

22 Messages

 • 

302 Points

I pay for software. So... I wait ;)
Maybe we can use this solution but hundreds and even thousands users still have a big problem.

9 Messages

 • 

174 Points

8 y ago

John, thanks for sharing this! Looked into this route, but this would probably disable the ctrl+a keyboard shortcut to "select all", which is not what I'd want.

The AutoHotKey solution has been working flawlessly for the past few days on my end, but as usual with such workarounds, YMMV with past/future versions of Lightroom...

Champion

 • 

6K Messages

 • 

103.7K Points

8 y ago

Dawid wrote, "this would probably disable the ctrl+a keyboard shortcut to 'select all'".

I just tested this with the following line, and CTRL+A for Select All continued to work as expected:

"$$$/AgLibrary/Menu/File/Edit/SelectFlaggedPhotos/Key=Cmd+Option+x"

8 Messages

 • 

148 Points

John,

which file did you change exactly?

Unfortunately, I did not find TranslatedStrings.txt for English - and this is the language I use for LR, since Polish is not supported. In fact, there is even no c:\program files\adobe\adobe photoshop lightroom 5.3\resources\en directory, and even if I create one and add file named TranslatedStrings.txt with one line:

"$$$/AgLibrary/Menu/File/Edit/SelectFlaggedPhotos/Key=Cmd+Option+q"

the Ctrl+Alt+a (AltGr+a) key combination behaves in the same way i.e. it deletes the whole text before adding Polish letter "ą".

Champion

 • 

6K Messages

 • 

103.7K Points

"there is even no c:\program files\adobe\adobe photoshop lightroom 5.3\resources\en directory, and even if I create one and add file named TranslatedStrings.txt with one line..."

Right, that's what you need to do. However, while that line successfully changes the shortcut for Edit > Select Flagged Photos from CTRL+ALT+A to CTRL+ALT+Q, it uncovers another problem (a bug), which you have observed: In an edit field like Caption, CTRL+ALT+A is now incorrectly interpreted as "select all text" (like CTRL+A).

So it looks like AutoHotkey is the only workaround on Windows.

8 Messages

 • 

148 Points

Actually the behaviour is slightly different.
Ctrl+a selects all text, indeed - and if I press any key, the selection will disappear and a new character will appea, like in any other Windows program.
However, with this special combination Ctrl+Alt+a, text is not selected, but it is immediately replaced with "ą" character - I never saw such behaviour in any other software. And by the way - creating the file as described above does not change anything, i.e. does not replace the default behaviour to "Select All" in my case.

Champion

 • 

6K Messages

 • 

103.7K Points

Adding the key mapping described above changes the shortcut for Edit > Select Flagged Photos from CTRL+ALT+A to CTRL+ALT+Q. After that change to the key mapping, LR then incorrectly interprets CTRL+ALT+A in edit fields as "select all". On an English keyboard, that's all it does. But on a Polish keyboard, it looks like LR is *also* interpreting it as insertion of the "ą" character -- so when you type CTRL+ALT+A, LR first selects all the text and then inserts the character, overwriting the selection.

8 Messages

 • 

148 Points

I see. In fact, since it was behaving in the same way before changing the shortcut from CTRL+ALT+A to CTRL+ALT+Q, it seems that on Polish keyboard this "additional" behaviour (clearing text and inserting of the "ą" character) appears regardless if the CTRL+ALT+A is mapped to any function or not. Seems like a more serious bug than just key mappings.

9 Messages

 • 

174 Points

8 y ago

Excellent, thanks for testing this and providing another solid + easy fix to this long standing problem.

Adobe, can you please copy John's solution and make it part of LR5.4/LR6?

Adobe Administrator

 • 

16K Messages

 • 

296.7K Points

8 y ago

Thanks for reporting. The localization team is looking into it.

8 Messages

 • 

148 Points

Jeff,

please note that Ctrl+Alt+a is not the only Ctrl+Alt combination for Polish keyboard - so if localization team would modify the key mappings, they should be aware that the following keys are used on Windows with Polish keyboard enabled:

Ctrl+Alt+a - "ą"
Ctrl+Alt+c - "ć"
Ctrl+Alt+e - "ę"
Ctrl+Alt+l - "ł"
Ctrl+Alt+n - "ń"
Ctrl+Alt+o - "ó"
Ctrl+Alt+s - "ś"
Ctrl+Alt+x - "ź"
Ctrl+Alt+z - "ż"

and the same with Shift for capitals, i.e. Ctrl+Alt+Shift+a = "Ą" etc.

Ctrl+Alt+a is the annoying one as it disturbs the normal use of product (entering comments, keywords etc.), but if it would be replaced with another shortcut, please avoid the above one. The best option would be ability to disable this shortcut.

Adobe Administrator

 • 

16K Messages

 • 

296.7K Points

Thanks. I've passed this along to the loc team.

Sr. Product Manager, Adobe Digital Imaging

22 Messages

 • 

302 Points

7 y ago

According to the John R. Ellis advice I join this discussion. The problem relates Lightroom 5.4 [Windows 7 64-bit] and the Polish letter “ą”. Here it is what I have written in a different post:

When I write keywords in the fields provided I came across the problem of deleting the already written text when I use the Polish letter “ą”. I didn’t notice any problems when using other letters typical for Polish language. For example, I write for the given photo or photos a number of words: miasto, ulica, prąd. When I write the letter “ą” in the word “prąd” everything what I have already written is deleted and in the field provided I can only see “ą”. The same problem occurs in other places, for instance, when I want to change the name of the folder or file. When I want to write the Polish letter “ą” (Alt+a) everything that has been written earlier is deleted. I always have to fight with this problem by writing all the words, including the word with the “ą” sign, in the Notepad and then copy it into the field provided.

You are discussing the solution, however, I am not a programmer and I don’t know how to use the solution and I am afraid that an average user can also have some problems with it. To sum up, is there any possibility to find the solution to the problem of Polish letter “ą” and the combination of Alt+a?

Champion

 • 

6K Messages

 • 

103.7K Points

I think using the free third-party program Autohotkey is the only solution that's been identified so far.

22 Messages

 • 

302 Points

John, the solution which you suggest is, in my opinion, not a solution at all. I agree that it might be effective, however, majority of users will not use it. I am more interested in solution in relation to Lightroom which should be easy to find. Besides, I have never come across any other software which had such an error. As far as my memory is good, similar problems concerning Polish letters occur in Illustrator CS6. You can’t use most of Polish letters when you want to change layer name directly from the layer panel. You have to double click and write the name in the new layer option window.

Champion

 • 

6K Messages

 • 

103.7K Points

I fully agree that using Autohotkey is not a great solution.