comparison dwt/widgets/Text.d @ 128:07399639c0c8

Added DWT extension to dwt.widgets.MessageBox
author Jacob Carlborg <doob@me.com>
date Sat, 17 Jan 2009 16:26:49 +0100
parents 38807a925e24
children 3d9eb62cd2e3
comparison
equal deleted inserted replaced
127:8086e7b181a3 128:07399639c0c8
1322 copy (); 1322 copy ();
1323 return false; 1323 return false;
1324 case 9: /* V */ 1324 case 9: /* V */
1325 paste (); 1325 paste ();
1326 return false; 1326 return false;
1327 default:
1327 } 1328 }
1328 } 1329 }
1329 if ((style & DWT.SINGLE) !is 0) { 1330 if ((style & DWT.SINGLE) !is 0) {
1330 ushort keyCode = nsEvent.keyCode (); 1331 ushort keyCode = nsEvent.keyCode ();
1331 switch (keyCode) { 1332 switch (keyCode) {
1332 case 76: /* KP Enter */ 1333 case 76: /* KP Enter */
1333 case 36: /* Return */ 1334 case 36: /* Return */
1334 postEvent (DWT.DefaultSelection); 1335 postEvent (DWT.DefaultSelection);
1336 default:
1335 } 1337 }
1336 } 1338 }
1337 if ((stateMask & DWT.COMMAND) !is 0) return result; 1339 if ((stateMask & DWT.COMMAND) !is 0) return result;
1338 String oldText = ""; 1340 String oldText = "";
1339 int charCount = getCharCount (); 1341 int charCount = getCharCount ();