diff options
author | fluxgen <fluxgen> | 2003-09-08 21:26:19 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-09-08 21:26:19 (GMT) |
commit | 3e3166af39f09b986ccc6b0f6ea11661810100f0 (patch) | |
tree | b4b80614e5d3f0eba1c684feb2fccc1ae5f49fa1 | |
parent | 040f8a655615ca426983e277b04b02b175bbb9c2 (diff) | |
download | fluxbox_lack-3e3166af39f09b986ccc6b0f6ea11661810100f0.zip fluxbox_lack-3e3166af39f09b986ccc6b0f6ea11661810100f0.tar.bz2 |
fixed lock mask for num and scroll lock
-rw-r--r-- | src/FbTk/TextBox.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc index 817c4f6..01451e4 100644 --- a/src/FbTk/TextBox.cc +++ b/src/FbTk/TextBox.cc | |||
@@ -19,12 +19,13 @@ | |||
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: TextBox.cc,v 1.1 2003/08/26 23:24:48 fluxgen Exp $ | 22 | // $Id: TextBox.cc,v 1.2 2003/09/08 21:26:19 fluxgen Exp $ |
23 | 23 | ||
24 | #include "TextBox.hh" | 24 | #include "TextBox.hh" |
25 | #include "Font.hh" | 25 | #include "Font.hh" |
26 | #include "EventManager.hh" | 26 | #include "EventManager.hh" |
27 | #include "App.hh" | 27 | #include "App.hh" |
28 | #include "KeyUtil.hh" | ||
28 | 29 | ||
29 | #include <cctype> | 30 | #include <cctype> |
30 | #include <X11/keysym.h> | 31 | #include <X11/keysym.h> |
@@ -183,6 +184,10 @@ void TextBox::buttonPressEvent(XButtonEvent &event) { | |||
183 | } | 184 | } |
184 | 185 | ||
185 | void TextBox::keyPressEvent(XKeyEvent &event) { | 186 | void TextBox::keyPressEvent(XKeyEvent &event) { |
187 | // strip numlock and scrolllock mask | ||
188 | event.state &= ~FbTk::KeyUtil::numlockMod(); | ||
189 | event.state &= ~FbTk::KeyUtil::scrolllockMod(); | ||
190 | |||
186 | KeySym ks; | 191 | KeySym ks; |
187 | char keychar[1]; | 192 | char keychar[1]; |
188 | XLookupString(&event, keychar, 1, &ks, 0); | 193 | XLookupString(&event, keychar, 1, &ks, 0); |