[iortcw] 74/497: All: Fix ctrl+key codes for edit fields

2017-09-08 Thread Simon McVittie
This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 34b03de2c4df7419d95622d42be439c1b2dea29c
Author: m4n4t4...@gmail.com 

Date:   Mon Mar 17 18:03:18 2014 +

All: Fix ctrl+key codes for edit fields
---
 MP/code/sdl/sdl_input.c | 2 ++
 SP/code/sdl/sdl_input.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/MP/code/sdl/sdl_input.c b/MP/code/sdl/sdl_input.c
index 3dde973..21a96b8 100644
--- a/MP/code/sdl/sdl_input.c
+++ b/MP/code/sdl/sdl_input.c
@@ -731,6 +731,8 @@ static void IN_ProcessEvents( void )
 
if( key == K_BACKSPACE )
Com_QueueEvent( 0, SE_CHAR, CTRL('h'), 
0, 0, NULL );
+   else if( keys[K_CTRL].down && key >= 'a' && key 
<= 'z' )
+   Com_QueueEvent( 0, SE_CHAR, CTRL(key), 
0, 0, NULL );
 
lastKeyDown = key;
break;
diff --git a/SP/code/sdl/sdl_input.c b/SP/code/sdl/sdl_input.c
index 3dde973..21a96b8 100644
--- a/SP/code/sdl/sdl_input.c
+++ b/SP/code/sdl/sdl_input.c
@@ -731,6 +731,8 @@ static void IN_ProcessEvents( void )
 
if( key == K_BACKSPACE )
Com_QueueEvent( 0, SE_CHAR, CTRL('h'), 
0, 0, NULL );
+   else if( keys[K_CTRL].down && key >= 'a' && key 
<= 'z' )
+   Com_QueueEvent( 0, SE_CHAR, CTRL(key), 
0, 0, NULL );
 
lastKeyDown = key;
break;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

___
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits


[iortcw] 74/497: All: Fix ctrl+key codes for edit fields

2016-09-21 Thread Simon McVittie
This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 34b03de2c4df7419d95622d42be439c1b2dea29c
Author: m4n4t4...@gmail.com 

Date:   Mon Mar 17 18:03:18 2014 +

All: Fix ctrl+key codes for edit fields
---
 MP/code/sdl/sdl_input.c | 2 ++
 SP/code/sdl/sdl_input.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/MP/code/sdl/sdl_input.c b/MP/code/sdl/sdl_input.c
index 3dde973..21a96b8 100644
--- a/MP/code/sdl/sdl_input.c
+++ b/MP/code/sdl/sdl_input.c
@@ -731,6 +731,8 @@ static void IN_ProcessEvents( void )
 
if( key == K_BACKSPACE )
Com_QueueEvent( 0, SE_CHAR, CTRL('h'), 
0, 0, NULL );
+   else if( keys[K_CTRL].down && key >= 'a' && key 
<= 'z' )
+   Com_QueueEvent( 0, SE_CHAR, CTRL(key), 
0, 0, NULL );
 
lastKeyDown = key;
break;
diff --git a/SP/code/sdl/sdl_input.c b/SP/code/sdl/sdl_input.c
index 3dde973..21a96b8 100644
--- a/SP/code/sdl/sdl_input.c
+++ b/SP/code/sdl/sdl_input.c
@@ -731,6 +731,8 @@ static void IN_ProcessEvents( void )
 
if( key == K_BACKSPACE )
Com_QueueEvent( 0, SE_CHAR, CTRL('h'), 
0, 0, NULL );
+   else if( keys[K_CTRL].down && key >= 'a' && key 
<= 'z' )
+   Com_QueueEvent( 0, SE_CHAR, CTRL(key), 
0, 0, NULL );
 
lastKeyDown = key;
break;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

___
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits