Lightroom: SDK auto_completion doesn't work correctly

  • 1
  • Problem
  • Updated 6 years ago
  • (Edited)
The auto_completion has two problems:

- It doesn't work for combo_boxes, contrary to the documentation .

- With edit_fields, it won't auto-complete after a space. In the test program below, if you type "2a " (space after the "a"), you're not presented the options "2a xx" and "2a yy".

Tested just now with LR 3.4, Windows 7:

local LrDialogs = import 'LrDialogs'
local LrView = import 'LrView'
local f = LrView.osFactory()

local items = {"1a xx", "1b yy", "2a xx", "2a yy"}

local combo = f:combo_box {immediate = true, items = items,
auto_completion = true, completion = items}
LrDialogs.presentModalDialog {title = "Test", contents = combo}
LrDialogs.message (combo.value)

local edit = f:edit_field {immediate = true,
auto_completion = true, completion = items}
LrDialogs.presentModalDialog {title = "Test", contents = edit}
LrDialogs.message (edit.value)
Photo of John R. Ellis

John R. Ellis, Champion

  • 3812 Posts
  • 993 Reply Likes

Posted 7 years ago

  • 1
Photo of John R. Ellis

John R. Ellis, Champion

  • 3812 Posts
  • 993 Reply Likes
Correction:

- With edit_fields, it won't auto-complete after a space. In the test program below, if you type "2a " (space after the "a"), you're not presented the options "2a xx" and "2a yy".
Photo of John R. Ellis

John R. Ellis, Champion

  • 3812 Posts
  • 993 Reply Likes
This problem still exists in LR 4 beta.
Photo of Richard Bucker

Richard Bucker

  • 1 Post
  • 0 Reply Likes
and it persists in LR4.1 on Windows but works in a crippled manner on OSX.