spoulson / Chatmore

Simplified web-based IRC client for PHP/Unix
17 stars 6 forks source link

Tab completion should indicate suggested completion without using textbox's selection #77

Closed spoulson closed 11 years ago

spoulson commented 11 years ago

Currently, tab completion will indicate its suggestion by inserting it in the text field and using selection to select the text. The user can press Enter or continue typing to accept the suggestion, Tab to try the next suggestion, or Esc to reject autocompletion.

The problem is that the functionality is trying to override default handling of selected text. This presents a variety of minor usability issues.

To keep things simple, tab completion should be done without text selection. Instead, use a tooltip-like popup.

spoulson commented 11 years ago

Fixed for autoreply completion. Temporarily disabled autocompetion of nicks for upcoming refactoring using tooltip approach. 3629e572790086bd524642006f92dc828af03ea7

spoulson commented 11 years ago

Rewrote autocomplete suggestion functionality. 5c2bf420a82bffa3e3e7b532009340717a101a33

spoulson commented 11 years ago

Append ": " on accepting a nick at beginning of the line.

Issue: Autocomplete tooltip remains after pressing enter while a suggestion was presented.

Issue: Pressing tab quickly after typing initiates a scan, when the user wants to accept first autocomplete. Instead:

spoulson commented 11 years ago

fd2cb2d0bf0e1cc3c04a05cf5c0b5f7c5d7ff4bf