summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-09-08 21:26:19 (GMT)
committerfluxgen <fluxgen>2003-09-08 21:26:19 (GMT)
commit3e3166af39f09b986ccc6b0f6ea11661810100f0 (patch)
treeb4b80614e5d3f0eba1c684feb2fccc1ae5f49fa1 /src
parent040f8a655615ca426983e277b04b02b175bbb9c2 (diff)
downloadfluxbox_lack-3e3166af39f09b986ccc6b0f6ea11661810100f0.zip
fluxbox_lack-3e3166af39f09b986ccc6b0f6ea11661810100f0.tar.bz2
fixed lock mask for num and scroll lock
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/TextBox.cc7
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
185void TextBox::keyPressEvent(XKeyEvent &event) { 186void 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);