src/video/uikit/SDL_uikitview.m
changeset 4565 e2d46c5c7483
parent 4560 95352c671a6e
child 4694 c24ba2cc9583
     1.1 --- a/src/video/uikit/SDL_uikitview.m	Wed Jul 21 00:11:56 2010 -0700
     1.2 +++ b/src/video/uikit/SDL_uikitview.m	Wed Jul 21 21:47:12 2010 -0700
     1.3 @@ -245,8 +245,8 @@
     1.4  	
     1.5  	if ([string length] == 0) {
     1.6  		/* it wants to replace text with nothing, ie a delete */
     1.7 -		SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_DELETE, SDL_FALSE);
     1.8 -		SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_DELETE, SDL_FALSE);
     1.9 +		SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_DELETE);
    1.10 +		SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_DELETE);
    1.11  	}
    1.12  	else {
    1.13  		/* go through all the characters in the string we've been sent
    1.14 @@ -272,14 +272,14 @@
    1.15  			
    1.16  			if (mod & KMOD_SHIFT) {
    1.17  				/* If character uses shift, press shift down */
    1.18 -				SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_LSHIFT, SDL_FALSE);
    1.19 +				SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_LSHIFT);
    1.20  			}
    1.21  			/* send a keydown and keyup even for the character */
    1.22 -			SDL_SendKeyboardKey(SDL_PRESSED, code, SDL_FALSE);
    1.23 -			SDL_SendKeyboardKey(SDL_RELEASED, code, SDL_FALSE);
    1.24 +			SDL_SendKeyboardKey(SDL_PRESSED, code);
    1.25 +			SDL_SendKeyboardKey(SDL_RELEASED, code);
    1.26  			if (mod & KMOD_SHIFT) {
    1.27  				/* If character uses shift, press shift back up */
    1.28 -				SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_LSHIFT, SDL_FALSE);
    1.29 +				SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_LSHIFT);
    1.30  			}			
    1.31  		}
    1.32  	}