1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 var symbolAltKeys = { 6 '1': ['\u00B9', // HintText 1 7 '\u00BD', // Vulgar fraction 1/2 8 '\u2153', // Vulgar fraction 1/3 9 '\u00BC', // Vulgar fraction 1/4 10 '\u215B'], // Vulgar fraction 1/8 11 '2': ['\u00B2', // HintText 2 12 '\u2154'], // Vulgar fraction 2/3 13 '3': ['\u00B3', // HintText 3 14 '\u00BE', // Vulgar fraction 3/4 15 '\u215C'], // Vulgar fraction 3/8 16 '4': ['\u2074'], // HintText 4 17 '5': ['\u215D'], // Vulgar fraction 5/8 18 '7': ['\u215E'], // Vulgar fraction 7/8 19 '0': ['\u00D8', // Empty set 20 '\u207F'], // HintText small n 21 '$': ['\u20AC', // Euro sign 22 '\u00A5', // Yen sign 23 '\u00A3', // Pound sign 24 '\u00A2'], // Cent sign 25 '%': ['\u2030'], // Per Mille sign 26 '*': ['\u2605', // Black star 27 '\u2020', // Dagger 28 '\u2021'], // Double dagger 29 '\\': ['/'], 30 '"': ['\u201C', // Left double quote 31 '\u201D', // Right double quote 32 '\u201E', // Double low-9 quotation mark 33 '\u00AB', // Left double angle quote 34 '\u00BB'], // Right double angle quote 35 '-': ['_'], 36 '!': ['\u00A1'], // Inverted exclamation mark 37 '?': ['\u00BF'], // Inverted question mark 38 '(': ['<', '{', '['], 39 ')': ['>', '}', ']'], 40 '.com' : ['.net','.org','.gov'] 41 }; 42 43 document.addEventListener('WebComponentsReady', function() { 44 var altkeyMetadata = document.createElement('kb-altkey-data'); 45 altkeyMetadata.registerAltkeys(symbolAltKeys); 46 }); 47