comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Display.d @ 112:9f4c18c268b2

Update to compile and execute with dmd 2.052.
author kntroh
date Wed, 16 Mar 2011 21:53:53 +0900
parents 12b890a6392a
children
comparison
equal deleted inserted replaced
111:b6e9904989ed 112:9f4c18c268b2
3354 case SWT.KeyDown: 3354 case SWT.KeyDown:
3355 case SWT.KeyUp: { 3355 case SWT.KeyUp: {
3356 KEYBDINPUT inputs; 3356 KEYBDINPUT inputs;
3357 inputs.wVk = cast(short) untranslateKey (event.keyCode); 3357 inputs.wVk = cast(short) untranslateKey (event.keyCode);
3358 if (inputs.wVk is 0) { 3358 if (inputs.wVk is 0) {
3359 char key = event.character; 3359 char key = cast(char) event.character;
3360 switch (key) { 3360 switch (key) {
3361 case SWT.BS: inputs.wVk = cast(short) OS.VK_BACK; break; 3361 case SWT.BS: inputs.wVk = cast(short) OS.VK_BACK; break;
3362 case SWT.CR: inputs.wVk = cast(short) OS.VK_RETURN; break; 3362 case SWT.CR: inputs.wVk = cast(short) OS.VK_RETURN; break;
3363 case SWT.DEL: inputs.wVk = cast(short) OS.VK_DELETE; break; 3363 case SWT.DEL: inputs.wVk = cast(short) OS.VK_DELETE; break;
3364 case SWT.ESC: inputs.wVk = cast(short) OS.VK_ESCAPE; break; 3364 case SWT.ESC: inputs.wVk = cast(short) OS.VK_ESCAPE; break;