for some reason i cant make this work.

i tried to detect shift + tab:
Qt Code:
  1. switch(e->key())
  2. {
  3.  
  4. case Qt::Key_Tab:
  5. if(textCursor().selectionEnd() - textCursor().selectionStart() > 0)
  6. {
  7. bool shiftHeld = (e->modifiers() & Qt::ShiftModifier);
  8. tabPressedEvent( shiftHeld );
  9. return;
  10. }
  11. }
To copy to clipboard, switch view to plain text mode 
didn't work. idea?