Israeli start-up DeepOptics has developed electronic multifocal lenses. Using sensors, they detect what the eye is focusing on as well as the viewing distance – adjusting the power of your spectacles to ensure that whatever is being looked at comes into focus, whether near or far.
http://www.timesofisrael.com/israeli-tech-promises-a-sharper-pair-of-glasses/