Skip to content

Commit

Permalink
Fix CtrlNum failure.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.csie.net/chewing/scim-chewing/trunk@220 ac1be623-90ea-0310-9410-ba68b2efa777
  • Loading branch information
kanru committed Apr 24, 2005
1 parent ea2b4be commit 6155575
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2005-04-24 Kanru Chen <[email protected]>

* src/scim_chewing_imengine.cpp
(ChewingIMEngineInstance::process_key_event):
Fix CtrlNum failure.

2005-04-17 Kanru Chen <[email protected]>

* src/scim_chewing_imengine.cpp
Expand Down
3 changes: 1 addition & 2 deletions src/scim_chewing_imengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ bool ChewingIMEngineInstance::process_key_event( const KeyEvent& key )
if ( key.is_key_release() )
return true;

std::cerr << "Mask: " << key.mask << " code: " << key.code << std::endl;
if ( key.mask == 0 ) {
switch ( key.code ) {
case SCIM_KEY_Left:
Expand Down Expand Up @@ -378,7 +377,7 @@ bool ChewingIMEngineInstance::process_key_event( const KeyEvent& key )
if (
key.code <= SCIM_KEY_9 &&
key.code >= SCIM_KEY_0 ) {
OnKeyCtrlNum( &da, key.code - SCIM_KEY_0, &gOut );
OnKeyCtrlNum( &da, key.get_ascii_code(), &gOut );
}
}
return commit( &gOut );
Expand Down

0 comments on commit 6155575

Please sign in to comment.