aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-09-16 16:10:32 (GMT)
committerrathnor <rathnor>2003-09-16 16:10:32 (GMT)
commit1aeefbe2fbdf97277503d6ad8a9643dc6ddb5a67 (patch)
treea5908cba97faffbc5ef3bb29723172917fa145d5
parent41cf43a02d455d62790f5c1189c8ce2be6a6d97a (diff)
downloadfluxbox_pavel-1aeefbe2fbdf97277503d6ad8a9643dc6ddb5a67.zip
fluxbox_pavel-1aeefbe2fbdf97277503d6ad8a9643dc6ddb5a67.tar.bz2
fix modifier cleaning in fbrun (was missing capslock)
-rw-r--r--util/fbrun/FbRun.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc
index 51298fa..5a05cec 100644
--- a/util/fbrun/FbRun.cc
+++ b/util/fbrun/FbRun.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbRun.cc,v 1.21 2003/09/16 14:49:49 rathnor Exp $ 22// $Id: FbRun.cc,v 1.22 2003/09/16 16:10:32 rathnor Exp $
23 23
24#include "FbRun.hh" 24#include "FbRun.hh"
25 25
@@ -205,9 +205,8 @@ void FbRun::redrawLabel() {
205} 205}
206 206
207void FbRun::keyPressEvent(XKeyEvent &ke) { 207void FbRun::keyPressEvent(XKeyEvent &ke) {
208 // strip numlock and scrolllock mask 208 // strip numlock, capslock and scrolllock mask
209 ke.state &= ~FbTk::KeyUtil::numlockMod(); 209 ke.state = FbTk::KeyUtil::cleanMods(ke.state);
210 ke.state &= ~FbTk::KeyUtil::scrolllockMod();
211 210
212 FbTk::TextBox::keyPressEvent(ke); 211 FbTk::TextBox::keyPressEvent(ke);
213 KeySym ks; 212 KeySym ks;