                 @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

        range = sel.getRangeAt(0)

        # normalize if carret has been moved or if we are in Chrome
        if @newPosition or @isChrome
            [newStartBP, newEndBP] = selection.normalize(range)
            theoricalRange = document.createRange()
            theoricalRange.setStart(newStartBP.cont,newStartBP.offset)

        range              = sel.getRangeAt(0)

        # normalize if carret has been moved or if we are in Chrome
        if @newPosition or @isChromeOrSafari
            [newStartBP, newEndBP] = selection.normalize(range)
            theoricalRange = document.createRange()
            theoricalRange.setStart(newStartBP.cont,newStartBP.offset)
