Changeset 89
- Timestamp:
- May 31, 2008, 12:46:45 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Display.java
r34 r89 3 3 /* 4 4 * OS/2 version. 5 * Copyright (c) 2002, 200 4EclipseOS2 Team.5 * Copyright (c) 2002, 2008 EclipseOS2 Team. 6 6 */ 7 7 … … 621 621 * </ul> 622 622 */ 623 //@@TODO (dmik) Implement it using WinQueryActiveWindow(OS.HWND_DESKTOP)(lpino): 624 //public Shell getActiveShell () { 625 // checkDevice (); 626 // Control control = findControl (OS.WinQueryActiveWindow(OS.HWND_DESKTOP)); 627 // if (control instanceof Shell) return (Shell) control; 628 // return null; 629 //} 623 public Shell getActiveShell () { 624 checkDevice (); 625 Control control = findControl (OS.WinQueryActiveWindow(OS.HWND_DESKTOP)); 626 if (control instanceof Shell) return (Shell) control; 627 return null; 628 } 630 629 631 630 /** … … 1252 1251 1253 1252 //@@TODO (dmik): not sure we need this 1254 //boolean isVirtualKey (int key) {1255 //switch (key) {1256 //case OS.VK_TAB:1257 //case OS.VK_MENU:1258 // case OS.VK_RETURN:1259 // case OS.VK_BACK:1260 //case OS.VK_SPACE:1261 // case OS.VK_ESCAPE:1262 //case OS.VK_SHIFT:1263 // case OS.VK_CONTROL:1264 //return true;1265 //}1266 //return false;1267 //}1253 boolean isVirtualKey (int key) { 1254 switch (key) { 1255 case OS.VK_TAB: 1256 case OS.VK_MENU: 1257 case OS.VK_ENTER: 1258 case OS.VK_BACKSPACE: 1259 case OS.VK_SPACE: 1260 case OS.VK_ESC: 1261 case OS.VK_SHIFT: 1262 case OS.VK_CTRL: 1263 return true; 1264 } 1265 return false; 1266 } 1268 1267 1269 1268 protected FATTRS matchFont (String fontNameSize) {
Note:
See TracChangeset
for help on using the changeset viewer.