mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 17:43:08 -05:00
CPE: fix not implementing TextHotkey action correctly. (Thanks Hetal)
This commit is contained in:
parent
603cb9fdce
commit
dfd654cdb3
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ namespace ClassicalSharp.Network.Protocols {
|
|||
Utils.LogDebug( "CPE Hotkey added: " + key + "," + keyMods + " : " + action );
|
||||
if( action == "" ) {
|
||||
game.InputHandler.Hotkeys.RemoveHotkey( key, keyMods );
|
||||
} else if( action[action.Length - 1] == '\n' ) {
|
||||
} else if( action[action.Length - 1] == '◙' ) { // graphical form of \n
|
||||
action = action.Substring( 0, action.Length - 1 );
|
||||
game.InputHandler.Hotkeys.AddHotkey( key, keyMods, action, false );
|
||||
} else { // more input needed by user
|
||||
|
|
Loading…
Add table
Reference in a new issue