                 @isSafari = @isSafari.indexOf('Constructor') > 0
                 @isChrome = !@isSafari && 
                          (`'WebkitTransform' in document.documentElement.style`)
-                if @isChrome
+                @isChromeOrSafari = @isChrome or @isSafari
+                if @isChromeOrSafari
                    @linesDiv.addEventListener('keyup', @_keyUpCorrection, false)
 
                 # Listen to mouse to detect when caret is moved

        startOffset  = currSel.range.startOffset
        # except if we are in chrome : normalise can't work in empty line, so we
        # have to get the theorical breakpoint where the selection should be.
        if @isChrome && targetNode.nodeName != '#text'
            breakPoint = selection.normalizeBP(targetNode, startOffset)
            targetNode = breakPoint.cont
            startOffset = breakPoint.offset

            @isSafari = @isSafari.indexOf('Constructor') > 0
            @isChrome = !@isSafari && 
                     (`'WebkitTransform' in document.documentElement.style`)
            @isChromeOrSafari = @isChrome or @isSafari
            if @isChromeOrSafari
               @linesDiv.addEventListener('keyup', @_keyUpCorrection, false)

            # Listen to mouse to detect when caret is moved
