Mercurial > projects > dwt-linux
comparison dwt/events/KeyEvent.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | f2e04420fd6c |
children | c0d810de7093 |
comparison
equal
deleted
inserted
replaced
237:98b80b00af79 | 238:380bad9f6852 |
---|---|
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * Port to the D programming language: | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | 11 * Frank Benoit <benoit@tionex.de> |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module dwt.events.KeyEvent; | 13 module dwt.events.KeyEvent; |
14 | |
15 import dwt.dwthelper.utils; | |
14 | 16 |
15 | 17 |
16 import dwt.widgets.Event; | 18 import dwt.widgets.Event; |
17 import dwt.events.TypedEvent; | 19 import dwt.events.TypedEvent; |
18 | 20 |
96 * Returns a string containing a concise, human-readable | 98 * Returns a string containing a concise, human-readable |
97 * description of the receiver. | 99 * description of the receiver. |
98 * | 100 * |
99 * @return a string representation of the event | 101 * @return a string representation of the event |
100 */ | 102 */ |
101 public override char[] toString() { | 103 public override String toString() { |
102 return Format( "{} character={} keyCode={} stateMask={} doit={}}", | 104 return Format( "{} character={} keyCode={} stateMask={} doit={}}", |
103 super.toString[ 0 .. $-2 ], | 105 super.toString[ 0 .. $-2 ], |
104 character, keyCode, stateMask, doit ); | 106 character, keyCode, stateMask, doit ); |
105 } | 107 } |
106 } | 108 } |