Explorar o código

Fixing a bug in as-mac-firefox-get-frontmost-url

Prior to the fix the firefox link grabber won't work correctly if a cursor has been already positioned in the URL field. The fix works by adding an additional keystore for selecting all the text in that field.
Daniil Frumin %!s(int64=12) %!d(string=hai) anos
pai
achega
feb43669d6
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      contrib/lisp/org-mac-link-grabber.el

+ 3 - 2
contrib/lisp/org-mac-link-grabber.el

@@ -216,8 +216,9 @@ applications and inserting them in org documents"
 					 "	activate\n"
 					 "	delay 0.15\n"
 					 "	tell application \"System Events\"\n"
-					 "		keystroke \"l\" using command down\n"
-					 "		keystroke \"c\" using command down\n"
+					 "		keystroke \"l\" using {command down}\n"
+					 "		keystroke \"a\" using {command down}\n"
+					 "		keystroke \"c\" using {command down}\n"
 					 "	end tell\n"
 					 "	delay 0.15\n"
 					 "	set theUrl to the clipboard\n"