Browse Source

Clean up code in global shortcut code example

Thomas Tuts 10 years ago
parent
commit
e829a28947
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docs/api/global-shortcut.md

+ 3 - 1
docs/api/global-shortcut.md

@@ -9,8 +9,10 @@ var globalShortcut = require('global-shortcut');
 
 // Register a 'ctrl+x' shortcut listener.
 var ret = globalShortcut.register('ctrl+x', function() { console.log('ctrl+x is pressed'); })
-if (!ret)
+
+if (!ret) {
   console.log('registration failed');
+}
 
 // Check whether a shortcut is registered.
 console.log(globalShortcut.isRegistered('ctrl+x'));