window.c
changeset 1637 ee2049729147
parent 1570 c9b6cf44ce53
child 1642 1678f11897cc
equal deleted inserted replaced
1636:060fc7b40cb8 1637:ee2049729147
  1264 	we.keypress.ascii = key & 0xFF;
  1264 	we.keypress.ascii = key & 0xFF;
  1265 	we.keypress.keycode = key >> 16;
  1265 	we.keypress.keycode = key >> 16;
  1266 	we.keypress.cont = true;
  1266 	we.keypress.cont = true;
  1267 
  1267 
  1268 	// check if we have a query string window open before allowing hotkeys
  1268 	// check if we have a query string window open before allowing hotkeys
  1269 	if(FindWindowById(WC_QUERY_STRING, 0)!=NULL || FindWindowById(WC_SEND_NETWORK_MSG, 0)!=NULL)
  1269 	if(FindWindowById(WC_QUERY_STRING, 0)!=NULL || FindWindowById(WC_SEND_NETWORK_MSG, 0)!=NULL || FindWindowById(WC_CONSOLE, 0)!=NULL)
  1270 		query_open = true;
  1270 		query_open = true;
  1271 
  1271 
  1272 	// Call the event, start with the uppermost window.
  1272 	// Call the event, start with the uppermost window.
  1273 	for(w=_last_window; w != _windows;) {
  1273 	for(w=_last_window; w != _windows;) {
  1274 		--w;
  1274 		--w;
  1275 		// if a query window is open, only call the event for certain window types
  1275 		// if a query window is open, only call the event for certain window types
  1276 		if(query_open && w->window_class!=WC_QUERY_STRING && w->window_class!=WC_SEND_NETWORK_MSG && w->window_class!=WC_MAIN_TOOLBAR)
  1276 		if(query_open && w->window_class!=WC_QUERY_STRING && w->window_class!=WC_SEND_NETWORK_MSG && w->window_class!=WC_CONSOLE)
  1277 			continue;
  1277 			continue;
  1278 		w->wndproc(w, &we);
  1278 		w->wndproc(w, &we);
  1279 		if (!we.keypress.cont)
  1279 		if (!we.keypress.cont)
  1280 			break;
  1280 			break;
  1281 	}
  1281 	}
       
  1282 
       
  1283 	if (we.keypress.cont)
       
  1284 		FindWindowById(WC_MAIN_TOOLBAR, 0)->wndproc(w, &we);
  1282 }
  1285 }
  1283 
  1286 
  1284 extern void UpdateTileSelection(void);
  1287 extern void UpdateTileSelection(void);
  1285 extern bool VpHandlePlaceSizingDrag(void);
  1288 extern bool VpHandlePlaceSizingDrag(void);
  1286 
  1289