window.c
changeset 5108 aeaef6fe53b7
parent 5090 67446a4104f7
child 5120 1ff65e874ce3
equal deleted inserted replaced
5107:f3cddd9ce5f4 5108:aeaef6fe53b7
  1420 	*/
  1420 	*/
  1421 	if (!IsGeneratingWorld()) _current_player = _local_player;
  1421 	if (!IsGeneratingWorld()) _current_player = _local_player;
  1422 
  1422 
  1423 	// Setup event
  1423 	// Setup event
  1424 	e.event = WE_KEYPRESS;
  1424 	e.event = WE_KEYPRESS;
  1425 	e.we.keypress.ascii = GB(key, 0, 8);
  1425 	e.we.keypress.key     = GB(key,  0, 16);
  1426 	e.we.keypress.keycode = GB(key, 16, 16);
  1426 	e.we.keypress.keycode = GB(key, 16, 16);
  1427 	e.we.keypress.cont = true;
  1427 	e.we.keypress.cont = true;
  1428 
  1428 
  1429 	// check if we have a query string window open before allowing hotkeys
  1429 	// check if we have a query string window open before allowing hotkeys
  1430 	if (FindWindowById(WC_QUERY_STRING,       0) != NULL ||
  1430 	if (FindWindowById(WC_QUERY_STRING,       0) != NULL ||