<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - list box ignores spaces"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107788">107788</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>list box ignores spaces
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.2.5.1 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Base
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>BridgeportContractor@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=133252" name="attach_133252" title="Form with a Table control with a list box named Color ID.">attachment 133252</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=133252&action=edit" title="Form with a Table control with a list box named Color ID.">[details]</a></span>
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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>