From 3fc398257638ced3fc35aa6722c4a31e630ad030 Mon Sep 17 00:00:00 2001 From: Robin Andersson Date: Wed, 15 Aug 2018 22:06:02 +0200 Subject: [PATCH] fix: README badges links --- README.md | 8 ++++---- docs/README.hbs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e4368de..e099e91 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ forcefocus > Node module that allows you to steal focus from other windows in Windows. -![npm](https://img.shields.io/npm/dw/forcefocus.svg) -![NpmVersion](https://img.shields.io/npm/v/npm.svg) -![NpmLicense](https://img.shields.io/npm/l/forcefocus.svg) -![AppVeyor branch](https://img.shields.io/appveyor/ci/robinwassen/forcefocus/master.svg?logo=appveyor) +[![npm](https://img.shields.io/npm/dw/forcefocus.svg)](https://npmjs.com/package/forcefocus) +[![NpmVersion](https://img.shields.io/npm/v/forcefocus.svg)](https://npmjs.com/package/forcefocus) +[![NpmLicense](https://img.shields.io/npm/l/forcefocus.svg)](https://npmjs.com/package/forcefocus) +[![AppVeyor branch](https://img.shields.io/appveyor/ci/robinwassen/forcefocus/master.svg?logo=appveyor)](https://ci.appveyor.com/project/robinwassen/forcefocus) Microsoft changed the implementation of [SetFocus()](https://msdn.microsoft.com/en-us/library/windows/desktop/ms646312(v=vs.85).aspx) to only allow an app to grant focus to other windows if it currenly holds the focus. If an app that does not have the focus tries to take it, the taskbar will just flash rather than focusing the window. These changes was probably done to improve the user experience so users would not be distrubed by the focused application suddenly switching. diff --git a/docs/README.hbs b/docs/README.hbs index 21bc5d1..69a9ca3 100644 --- a/docs/README.hbs +++ b/docs/README.hbs @@ -5,10 +5,10 @@ forcefocus > Node module that allows you to steal focus from other windows in Windows. -![npm](https://img.shields.io/npm/dw/forcefocus.svg) -![NpmVersion](https://img.shields.io/npm/v/npm.svg) -![NpmLicense](https://img.shields.io/npm/l/forcefocus.svg) -![AppVeyor branch](https://img.shields.io/appveyor/ci/robinwassen/forcefocus/master.svg?logo=appveyor) +[![npm](https://img.shields.io/npm/dw/forcefocus.svg)](https://npmjs.com/package/forcefocus) +[![NpmVersion](https://img.shields.io/npm/v/forcefocus.svg)](https://npmjs.com/package/forcefocus) +[![NpmLicense](https://img.shields.io/npm/l/forcefocus.svg)](https://npmjs.com/package/forcefocus) +[![AppVeyor branch](https://img.shields.io/appveyor/ci/robinwassen/forcefocus/master.svg?logo=appveyor)](https://ci.appveyor.com/project/robinwassen/forcefocus) Microsoft changed the implementation of [SetFocus()](https://msdn.microsoft.com/en-us/library/windows/desktop/ms646312(v=vs.85).aspx) to only allow an app to grant focus to other windows if it currenly holds the focus. If an app that does not have the focus tries to take it, the taskbar will just flash rather than focusing the window. These changes was probably done to improve the user experience so users would not be distrubed by the focused application suddenly switching.