emuikernel / wittytwitter

Automatically exported from code.google.com/p/wittytwitter
1 stars 0 forks source link

Enter Key pressed in update text block submits update #211

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Type stuff into update text block.
2. Press enter (reported as return by WPF Keys enum)
3.

What is the expected output? What do you see instead?
I think the enter should be ignored or there should be an option to ignore
it, or even possibly a new line should be entered.  But with the length
limitations ignore is best.

I'm afraid I am from before word wrap, so I often will update in error when
wanting to move to the next line.

Observed Output: incomplete tweet is submitted.

What version of the product are you using? On what operating system?
2.029755 Debug from subversion.
Windows XP 32 bit sp2 and Vista 32 no sp 1.

Please provide any additional information below.
From my test enter can be brute force ignored in the
"TweetTextBox_PreviewKeyDown" procedure, by adding

else if(Keyboard.Modifiers==ModifierKeys.None && Key.Return == e.Key)
            {
                e.Handled = true;
            }
Just before (about 10 lines in)
            if (!isInAutocompleteMode) return; 

If you want a better patch I'd be happy to provide one. (please point me to
patch generation process)

Thanks.
Al

Original issue reported on code.google.com by AlanSchr...@gmail.com on 1 Feb 2009 at 6:12