mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-29 19:57:41 +00:00
commit
eee5b52ba9
2 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ String.prototype.kmwCodePointToCodeUnit=function(a){if(null===a)return null;var
|
|||
String.prototype.kmwBMPNextChar=function(a){return 0>a||a>=(""+this).length-1?null:a+1};String.prototype.kmwBMPPrevChar=function(a){return 0>=a||a>(""+this).length?null:a-1};String.prototype.kmwBMPCodePointToCodeUnit=function(a){return a};String.prototype.kmwBMPCodeUnitToCodePoint=function(a){return a};String.prototype.kmwBMPLength=function(){return(""+this).length};String.prototype.kmwBMPSubstr=function(a,b){var c=""+this;return-1<a?c.substr(a,b):c.substr(c.length+a,-a)};
|
||||
String.kmwEnableSupplementaryPlane=function(a){var b=String.prototype;String._kmwFromCharCode=a?String.kmwFromCharCode:String.fromCharCode;b._kmwCharAt=a?b.kmwCharAt:b.charAt;b._kmwCharCodeAt=a?b.kmwCharCodeAt:b.charCodeAt;b._kmwIndexOf=a?b.kmwIndexOf:b.indexOf;b._kmwLastIndexOf=a?b.kmwLastIndexOf:b.lastIndexOf;b._kmwSlice=a?b.kmwSlice:b.slice;b._kmwSubstring=a?b.kmwSubstring:b.substring;b._kmwSubstr=a?b.kmwSubstr:b.kmwBMPSubstr;b._kmwLength=a?b.kmwLength:b.kmwBMPLength;b._kmwNextChar=a?b.kmwNextChar:
|
||||
b.kmwBMPNextChar;b._kmwPrevChar=a?b.kmwPrevChar:b.kmwBMPPrevChar;b._kmwCodePointToCodeUnit=a?b.kmwCodePointToCodeUnit:b.kmwBMPCodePointToCodeUnit;b._kmwCodeUnitToCodePoint=a?b.kmwCodeUnitToCodePoint:b.kmwBMPCodeUnitToCodePoint};
|
||||
var __BUILD__=407;
|
||||
var __BUILD__=408;
|
||||
(function(){var b=(window.tavultesoft={}).keymanweb={_TitleElement:null,_Enabled:1,_IE:0,legacy:0,_IsActivatingKeymanWebUI:0,_JustActivatedKeymanWebUI:0,_IgnoreNextSelChange:0,_Selection:null,_SelectionControl:null,_KeyboardStubs:[],dfltStub:null,_Keyboards:[],_ActiveKeyboard:null,_ActiveStub:null,_LoadingInternalName:null,_AnyIndices:[],_DeadKeys:[],_ActiveControl:null,_Controls:[],_AttachedElements:[],_ActiveElement:null,_LastActiveElement:null,_DfltStyle:"",_MasterDocument:null,_HotKeys:[],focusTimer:null,
|
||||
focusing:!1,resizing:!1,sortedInputs:[],inputList:[],languageList:null,languagesPending:[],deferredStubs:[],deferredKRS:[],deferredKR:[],loadTimer:null,waiting:null,warned:!1,baseFont:"sans-serif",appliedFont:"",embeddedFonts:[],fontCheckTimer:null,srcPath:"",rootPath:"",mustReloadKeyboard:!1,fullInitialization:!0};b.initialized=0;b.build=__BUILD__;b.version="2.0";b.helpURL="http://help.keyman.com/go";window.KeymanWeb=b;var a=b.util={},h=b.osk={ready:!1};b.ui={};b.setDefaultDeviceOptions=function(){};
|
||||
b.getStyleSheetPath=function(b){return b};b.getKeyboardPath=function(b){return b};b.KC_=function(){return""};b.handleRotationEvents=function(){};b.alignInputs=function(){};b.refreshElementContent=null;h.highlightSubKeys=function(){};h.createKeyTip=function(){};h.optionKey=function(){};h.showKeyTip=function(){};h.waitForFonts=function(){return!0};b.options={root:"",resources:"",keyboards:"",fonts:"",attachType:"",ui:null};a.events=[];a.currentEvents=[];h=document.getElementsByTagName("script");h=h[h.length-
|
||||
|
|
@ -225,7 +225,7 @@ a.stopPropagation()}),h.attachDOMEvent(a._Box,"touchcancel",function(a){a.preven
|
|||
"";a._Box.className="";if(null!=b._ActiveKeyboard&&(e=b._ActiveKeyboard.KV,c=b._ActiveKeyboard.KH,d=b._ActiveKeyboard.KVKL,"undefined"!=typeof d&&null!=d&&(f=d[i.formFactor],"undefined"==typeof f||null==f)))if("phone"==i.formFactor?f=d.tablet:"tablet"==i.formFactor&&(f=d.phone),"undefined"==typeof f||null==f)f=d.desktop;if(null!=e&&null!=e.BK){for(var d=e.BK,g=!0,j=0;j<d.length;j++)if(0<d[j].length){g=!1;break}g&&(e=null)}null!=e||""==c||i.touchable?(null==e&&(e={F:"Tahoma",BK:"`1234567890-=\u00a7~~qwertyuiop[]\\~~~asdfghjkl;'~~~~~?zxcvbnm,./~~~~~ ~!@#$%^&*()_+\u00a7~~QWERTYUIOP{}\\~~~ASDFGHJKL:\"~~~~~?ZXCVBNM<>?~~~~~ "}),
|
||||
a._GenerateVisualKeyboard(e,c,f)):(a.ddOSK=!1,e=h._CreateElement("DIV"),e.className="kmw-title-bar",e.appendChild(a._TitleBarInterior()),e.onmousedown=a._VMoveMouseDown,a._Box.appendChild(e),e=h._CreateElement("DIV"),e.className="kmw-osk-static",e.innerHTML=c,a._Box.appendChild(e),b._ActiveKeyboard.KHF&&b._ActiveKeyboard.KHF(a._Box));b._TitleElement&&(b._TitleElement.innerHTML="<span style='font-weight:bold'>"+b._ActiveKeyboard.KN+"</span> - "+b._TitleElement.innerHTML,b._TitleElement.className="",
|
||||
b._TitleElement.style.color="#fff")}a.createKeyTip();c=a._Box.firstChild;e=" kmw-keyboard-"+(b._ActiveKeyboard?b._ActiveKeyboard.KI.replace("Keyboard_",""):"");"keymanweb_title_bar"==c.id&&(c=c.nextSibling);c.className="kmw-osk-inner-frame"+e;a.appendStyleSheet();a._Enabled&&a._Show()}};a.appendStyleSheet=function(){if(null!=b._ActiveStub){a.styleSheet&&h.removeStyleSheet(a.styleSheet);var c=b._ActiveStub,e=c.KFont,c=c.KOskFont;h.addFontFaceStyleSheet(e);h.addFontFaceStyleSheet(c);b.alignInputs(!1);
|
||||
var d=a.addFontStyle(e,c);null!=b._ActiveKeyboard&&"string"==typeof b._ActiveKeyboard.KCSS&&(d+=b._ActiveKeyboard.KCSS);a.styleSheet=h.addStyleSheet(d);a.waitForFonts(e,c)&&b.alignInputs(!0)}};a.addFontStyle=function(a,e){var d=b.baseFont;"undefined"!=typeof a&&"undefined"!=typeof a.family&&(d=a.family);var d=d.replace(/\u0022/g,""),f=RegExp("s?"+d+",?"),g=b.appliedFont.replace(/\u0022/g,""),g=g.replace(f,""),g=g.replace(/,$/,""),g='"'+(""==g?d:d+","+g).replace(/\,/g,'","')+'"',d=".keymanweb-font{\nfont-family:"+
|
||||
var d=a.addFontStyle(e,c);null!=b._ActiveKeyboard&&"string"==typeof b._ActiveKeyboard.KCSS&&(d+=b._ActiveKeyboard.KCSS);a.styleSheet=h.addStyleSheet(d);a.waitForFonts(e,c)&&b.alignInputs(!0)}};a.addFontStyle=function(a,e){var d=b.baseFont;"undefined"!=typeof a&&"undefined"!=typeof a.family&&(d=a.family);var d=d.replace(/\u0022/g,""),f=RegExp("s?"+d+",?"),g=b.appliedFont.replace(/\u0022/g,""),g=g.replace(f,""),g=g.replace(/,$/,""),g='"'+(""==g?d:d+","+g).replace(/\,\s?/g,'","')+'"',d=".keymanweb-font{\nfont-family:"+
|
||||
g+" !important;\n}\n";"undefined"!=typeof e?d=d+'.kmw-key-text{\nfont-family:"'+e.family.replace(/\u0022/g,"").replace(/,/g,'","')+'";\n}\n':"undefined"!=typeof a&&(d=d+'.kmw-key-text{\nfont-family:"'+a.family.replace(/\u0022/g,"").replace(/,/g,'","')+'";\n}\n');b.appliedFont=g;return d};a._Unload=function(){a._VShift=a._DivVKbd=a._VKeySpans=a._Box=0};a.saveCookie=function(){var b=h.loadCookie("KeymanWeb_OnScreenKeyboard"),e=a.getPos();b.visible=a._Enabled?1:0;b.userSet=a.userPositioned?1:0;b.left=
|
||||
e.left;b.top=e.top;a._DivVKbd&&(b.width=a.width,b.height=a.height);h.saveCookie("KeymanWeb_OnScreenKeyboard",b)};a.loadCookie=function(){var b=h.loadCookie("KeymanWeb_OnScreenKeyboard");if("undefined"==typeof b||null==b)return a.userPositioned=!1;a._Enabled=h.toNumber(b.visible,!0);a.userPositioned=h.toNumber(b.userSet,!1);a.x=h.toNumber(b.left,-1);a.y=h.toNumber(b.top,-1);var e=h.toNumber(b.width,0.3*screen.width),b=h.toNumber(b.height,0.15*screen.height);e<0.2*screen.width&&(e=0.2*screen.width);
|
||||
b<0.1*screen.height&&(b=0.1*screen.height);e>0.9*screen.width&&(e=0.9*screen.width);b>0.5*screen.height&&(e=0.5*screen.height);a._DivVKbd&&(a._DivVKbd.style.width=e+"px",a._DivVKbd.style.height=b+"px",a._DivVKbd.style.fontSize=b/8+"px");if(-1==a.x||-1==a.y||!a._Box)a.userPositioned=!1;a.x<window.pageXOffset-0.8*e&&(a.x=window.pageXOffset-0.8*e);0>a.y&&(a.x=-1,a.y=-1,a.userPositioned=!1);a.userPositioned&&a._Box&&a.setPos({left:a.x,top:a.y});return!0}})();(function(){var b=window.tavultesoft.keymanweb,a=b.osk,h=b.util,i=h.device;b.fullInitialization=!0;b.setDefaultDeviceOptions=function(a){""==a.attachType&&(a.attachType=i.touchable?"manual":"auto")};h.wait=function(a){var g=b.waiting;if(!("undefined"==typeof g||null==g||b.warned)){var c=g.firstChild.childNodes;a?(g.pending=!0,window.setTimeout(function(){g.pending&&(window.scrollTo(0,0),c[0].style.display="none",c[1].className="kmw-wait-text",c[1].innerHTML=a,c[2].style.display="block",g.style.display=
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
407
|
||||
408
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue