[Libreoffice-bugs] [Bug 107788] New: list box ignores spaces

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri May 12 00:30:30 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=107788

            Bug ID: 107788
           Summary: list box ignores spaces
           Product: LibreOffice
           Version: 5.2.5.1 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Base
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: BridgeportContractor at gmail.com

Created attachment 133252
  --> https://bugs.documentfoundation.org/attachment.cgi?id=133252&action=edit
Form with a Table control with a list box named Color ID.

In a Form with a Table Control holding a list-box, removal of a selection is
clumsy.

In the attached db you can easily type only the first letter of the color to
select that color.  That works great.

But you can not easily remove a color with only a single keystroke, such as a
space.

Instead you have to physically remove your hand from the keyboard, grab the
mouse, then click on the list-box, then possibly scroll up if you have a large
list, then select the empty item at the very top of the list.  For someone who
is doing lots of data entry this is a pain and I think can easily be improved.

How I hope this can work:

When I type a space in a list-box (as the first letter typed into the list-box)
I would expect that an entry that either has a leading space or is blank is
selected.  

I say either, because I fully expect that there might be some entries that
legitimately begin with a space, and those should be honored first.  In that
case if multiple spaces are entered until no records are selected, then the
selected item should be the null item.  Here are some examples to make this
more clear:


I. If your list looks like this (three items):

a
b
c

And you type space, anything (except a backspace), the list-box should be reset
to null.


II. If your list looks like this:

space a
space b
c

And you type space, space, anything, the list-box should be reset to null.


III. If your list looks like this:

space
space a
b

And you type space, space, anything, the list-box should be reset to null.

If you type space, return, the first item which is "" should be selected.


III. If you type any letter, then backspace, the list-box should be returned to
a state as if you had not typed anything.  In other words backspaces should
undo any letters typed.


IV. For extra credit: I think hitting escape should undo any typing in that
cell only.  As it is it undoes the entire record.  Hitting escape a 2nd time
should undo the entire record.  

Hitting delete should probably clear the list box, and hitting delete a 2nd
time should proceed to delete the record.


There are many more improvements that can also be done for list-boxes: support
multiple columns with fixed or variable widths, allow copy, cut and paste, and
add a few more useful events.  I'll try to suggest those later in another
suggestion.

Thanks for looking at this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170512/b8836ea9/attachment-0001.html>


More information about the Libreoffice-bugs mailing list