From: Jerome St-Louis Date: Mon, 22 Apr 2013 08:01:17 +0000 (-0400) Subject: ecere/gui/ListBox: Fix to go to row, typing with shift (e.g. underscore) X-Git-Tag: 0.44.07~2 X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?p=sdk;a=commitdiff_plain;h=94278e6254ad69a286e359a7d01a18456e7e9062 ecere/gui/ListBox: Fix to go to row, typing with shift (e.g. underscore) --- diff --git a/ecere/src/gui/controls/ListBox.ec b/ecere/src/gui/controls/ListBox.ec index c53899c..5bcec46 100644 --- a/ecere/src/gui/controls/ListBox.ec +++ b/ecere/src/gui/controls/ListBox.ec @@ -4137,7 +4137,7 @@ private: return true; // We want to pick up the OnKeyHit to replace contents, but skip GoToLetter } - if(ch != 128 && !key.alt && !key.ctrl && GoToLetter(ch, false)) + if(ch >=32 && ch != 128 && !key.alt && !key.ctrl && GoToLetter(ch, false)) { /*if(inactive && window.state != Hidden) NotifyHighlight(master, this, currentRow, 0); @@ -4434,7 +4434,7 @@ private: if(!NotifyKeyHit(master, this, currentRow, key, ch)) return false; - if(ch != 128 && !key.alt && !key.ctrl && GoToLetter(ch, true)) + if(ch >=32 && ch != 128 && !key.alt && !key.ctrl && GoToLetter(ch, true)) { /*if(inactive && window.state != Hidden) return NotifyHighlight(master, this, currentRow, 0);