]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
fix keys
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Sat, 20 Dec 2008 15:11:33 +0000 (15:11 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Sat, 20 Dec 2008 15:11:33 +0000 (15:11 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@142 61c419a2-8eb2-4b30-bcec-8cead039b335

cross-Makefile.conf
radiant/commands.cpp

index 2a7076e6f061eff67a641776ae69fe515fc34bef..f503195dce537fde7ef90f55a8f728557e94a44a 100644 (file)
@@ -3,10 +3,10 @@
 # edit the paths in here
 
 # how to call the mingw tools
-MINGW_EXEC_PREFIX = /home/divverent/mingw/bin/i386-mingw32-
+MINGW_EXEC_PREFIX = i586-mingw32msvc-
 
 # where the dependencies package is extracted
-RADIANT_DEPENDENCIES_PREFIX = /home/divverent/radiant-deps-mingw32/
+RADIANT_DEPENDENCIES_PREFIX = $(HOME)/radiant-deps-mingw32/
 
 # run the prefix fixing tool
 IGNORETHIS := $(shell cd $(RADIANT_DEPENDENCIES_PREFIX) && ./fixprefix.sh)
index c1e1b2a3851746333a8fd567f5fd4d9f2f5a2971..cee1711747ab747d47fae01b1b244779f8d38499 100644 (file)
@@ -267,6 +267,7 @@ void SaveCommandMap(const char* path)
         m_file << name << "=";
 
         const char* key = global_keys_find(accelerator.key);
+
         if(!string_empty(key))
         {
           m_file << key;
@@ -328,6 +329,7 @@ public:
       int modifiers = 0;
       const char* last = value + string_length(value);
       const char* keyEnd = stringrange_find(value, last, '+');
+
       for(const char* modifier = keyEnd; modifier != last;)
       {
         const char* next = stringrange_find(modifier + 1, last, '+');
@@ -357,7 +359,7 @@ public:
 
       // strBuff has been cleaned of it's modifiers .. switch between a regular key and a virtual one
       // based on length
-      if(keyEnd - value == 1) // most often case.. deal with first
+      if(keyEnd - value == 1 && std::isalpha(value[0])) // most often case.. deal with first
       {
         accelerator.key = std::toupper(value[0]);
         ++m_count;