From 4ed706f6a327e06403e1def058b7290dcde3e634 Mon Sep 17 00:00:00 2001 From: hash Date: Thu, 22 Aug 2002 06:47:27 +0000 Subject: comments behind shift and meta key map definitions wasnt working... --- (limited to 'inputmethods/multikey') diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp index 74c99c7..1c17172 100644 --- a/inputmethods/multikey/keyboard.cpp +++ b/inputmethods/multikey/keyboard.cpp @@ -1045,6 +1045,9 @@ void Keys::setKeysFromFile(const char * filename) { buf = t.readLine(); while (buf) { + // get rid of comments + buf.replace(QRegExp("#.*$", FALSE, FALSE), ""); + // key definition if (buf.contains(QRegExp("^\\d+\\s+[0-1a-fx]+", FALSE, FALSE))) { // no $1 type referencing!!! this implementation of regexp sucks -- cgit v0.9.0.2