[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
Re: [zzdev] Re: [zzdev] 0.6 branch created
- To: ZZ Development <zzdev@xxxxxxxxxx>
- Subject: Re: [zzdev] Re: [zzdev] 0.6 branch created
- From: Antti-Juhani Kaijanaho <gaia@xxxxxx>
- Date: Wed, 4 Apr 2001 09:58:06 +0300
- In-reply-to: <3ACA3002.5C28FBB8@xxxxxx>; from b.fallenstein@xxxxxx on Tue, Apr 03, 2001 at 10:18:10PM +0200
- Mail-followup-to: ZZ Development <zzdev@xxxxxxxxxx>
- References: <20010403193324.A22469@xxxxxxxxxxx> <3ACA3002.5C28FBB8@xxxxxx>
- Sender: Antti-Juhani Kaijanaho <ajk@xxxxxxxxxxx>
On 20010403T221810+0200, B. Fallenstein wrote:
> I haven't been able to test the branch, because I'm currently unable to
> compile the whole of GZigZag. However, it appears that in all recent
> versions (including 0.5) there is a bug causing Finnish umlauts (ä and
> ö) to be entered into a cell twice even when the key was pressed only
> once.
Not a bug but a feature. See this code:
// FIXME: This is a REALLY REALLY BAD QUICK HACK to make the
// Finnish special letters work. The problem? We don't get a
// KEY_PRESSED for them. Damn Java!
int id = e.getID();
if(id == e.KEY_TYPED) {
int c = e.getKeyChar();
if (c == 'å' || c == 'Å' || c == 'ä' || c == 'Ä'
|| c == 'ö' || c == 'Ö') {
id = e.KEY_PRESSED;
}
}
(in ZZViewComponent)
I think it's better to get one too much than none (you can always
backspace off the extra one).
However, should this be made a run-time choice (a command-line switch
-umlautahck or something)?
--
%%% Antti-Juhani Kaijanaho % gaia@xxxxxx % http://www.iki.fi/gaia/ %%%