Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e3098f
)
ecere/gui/ListBox: Fix to go to row, typing with shift (e.g. underscore)
author
Jerome St-Louis
<jerome@ecere.com>
Mon, 22 Apr 2013 08:01:17 +0000
(
04:01
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Mon, 22 Apr 2013 08:01:17 +0000
(
04:01
-0400)
ecere/src/gui/controls/ListBox.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/controls/ListBox.ec
b/ecere/src/gui/controls/ListBox.ec
index
c53899c
..
5bcec46
100644
(file)
--- 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
}
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);
{
/*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(!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);
{
/*if(inactive && window.state != Hidden)
return NotifyHighlight(master, this, currentRow, 0);