[Bf-committers] HOME and END keys

alex mole bf-committers@blender.org
Tue, 02 Dec 2003 00:10:04 +0000


This is a multi-part message in MIME format.
--------------010905020104080500050000
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi

Here is a patch to make HOME and END keys work in text space and text 
edit boxes. It also tidies some related code in interface.c to make it 
work in the same way as similar code elsewhere in blender (most places 
in blender use "switch" to process keys, but this used "if...else if...")

[i made the diff with "cvs diff -u" - is that correct?]

ALSO: while I was testing this, I noticed that the DELETE key doesn't 
work in text boxes, even though the code is there to process DELKEY 
(this was also the case in previous versions). The function never gets 
sent a DELKEY event. I tried tracing back to work out why, but I got 
lost... If someone could give me a clue as to why this might be 
happening, I'd be happy to try and fix it.


alex





________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
--------------010905020104080500050000
Content-Type: application/x-gzip;
 name="homeend.diff.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="homeend.diff.gz"

H4sICJXXyz8AA2hvbWVlbmQuZGlmZgDFVttu4kgQfW6+ovYlA2ub2DgQMONR2OBM0JCLuCi7
yiLLmCZYcexs2xBLO/n37YuvkESR5mF5oN3dp6tP1TllGAUrnBiwIs5LjJO46dbMX//UJudT
WHs+NuDY3UUkDOPj5VpZ+pjeRo6zMQq3xMXFlLjHBQ95VyM4Jh7eecEDEDpEXhiA1mx1aytv
vQZlCwph0zJ5RVFKU9Rqw3W4g5aq6tDSDL1r6KegqPSDeCBJkipwGGJXoFXVUNuGrgp07ewM
FO1E1+QOSHzUOnB2VgOE0Cq0WQgTtD6fLwl2HuljTULIdSIMlzdX1g/rL4MtoDiJ7adwh+1l
6NfZtTJ8b/6zdXw4gvHEnl6OLmYU3OhzdDm2VMRmj3l463p4GB3/YnTxYfnwO+4uLWs8v726
mU8tg2cZuQTjwI4eved6RK9R5s2XDca+7wWY7oW+3+gflGckzOYFMS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