-InputLine::InputLine(QWidget *parent) : QLineEdit(parent) {
- idx = 0;
- connect(this, SIGNAL(returnPressed()), this, SLOT(enter()));
- tabComplete = new TabCompleter(this);
- connect(this, SIGNAL(nickListUpdated(QStringList)), tabComplete, SLOT(updateNickList(QStringList)));
+InputLine::InputLine(QWidget *parent)
+ : QLineEdit(parent),
+ idx(0),
+ tabCompleter(new TabCompleter(this))
+{
+
+#ifdef Q_WS_MAC
+ bindModifier = Qt::ControlModifier | Qt::AltModifier;
+ jumpModifier = Qt::ControlModifier;
+#else
+ bindModifier = Qt::ControlModifier;
+ jumpModifier = Qt::AltModifier;
+#endif
+
+ connect(this, SIGNAL(returnPressed()), this, SLOT(on_returnPressed()));
+ connect(this, SIGNAL(textChanged(QString)), this, SLOT(on_textChanged(QString)));
+