Mercurial > projects > dwt-mac
comparison dwt/widgets/Combo.d @ 140:d8c1f0540bcb
Fixes #12
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 04 Jun 2009 23:33:04 +0200 |
parents | 86fc761a24ae |
children | 199b4e8f3bde |
comparison
equal
deleted
inserted
replaced
139:86fc761a24ae | 140:d8c1f0540bcb |
---|---|
1223 ushort keyCode = nsEvent.keyCode (); | 1223 ushort keyCode = nsEvent.keyCode (); |
1224 switch (keyCode) { | 1224 switch (keyCode) { |
1225 case 76: /* KP Enter */ | 1225 case 76: /* KP Enter */ |
1226 case 36: /* Return */ | 1226 case 36: /* Return */ |
1227 postEvent (DWT.DefaultSelection); | 1227 postEvent (DWT.DefaultSelection); |
1228 default: | |
1228 } | 1229 } |
1229 } | 1230 } |
1230 if ((style & DWT.READ_ONLY) !is 0) return result; | 1231 if ((style & DWT.READ_ONLY) !is 0) return result; |
1231 if ((stateMask & DWT.COMMAND) !is 0) return result; | 1232 if ((stateMask & DWT.COMMAND) !is 0) return result; |
1232 String oldText = ""; | 1233 String oldText = ""; |