extendKeyBoard
This commit is contained in:
parent
519b76eb48
commit
bb28ba72b9
@ -56,7 +56,6 @@ core.platform.isPC (是否是电脑端)
|
||||
core.platform.isAndroid (是否是安卓端)
|
||||
core.platform.isIOS (是否是iOS端)
|
||||
core.platform.useLocalForage (是否开启了新版存档)
|
||||
core.platform.extendKeyBoard (是否开启了拓展键盘)
|
||||
|
||||
|
||||
core.domStyle
|
||||
|
||||
@ -57,7 +57,6 @@ core.platform.isPC (是否是电脑端)
|
||||
core.platform.isAndroid (是否是安卓端)
|
||||
core.platform.isIOS (是否是iOS端)
|
||||
core.platform.useLocalForage (是否开启了新版存档)
|
||||
core.platform.extendKeyBoard (是否开启了拓展键盘)
|
||||
|
||||
|
||||
core.domStyle
|
||||
|
||||
@ -1934,8 +1934,6 @@ actions.prototype._clickSwitchs = function (x, y) {
|
||||
case 7:
|
||||
return this._clickSwitchs_clickMove();
|
||||
case 8:
|
||||
return this._clickSwitchs_ExtendKeyboard();
|
||||
case 9:
|
||||
core.status.event.selection = 0;
|
||||
core.ui.drawSettings();
|
||||
break;
|
||||
@ -2000,13 +1998,6 @@ actions.prototype._clickSwitchs_clickMove = function () {
|
||||
core.ui.drawSwitchs();
|
||||
}
|
||||
|
||||
actions.prototype._clickSwitchs_ExtendKeyboard = function () {
|
||||
core.platform.extendKeyboard = !core.platform.extendKeyboard;
|
||||
core.setLocalStorage('extendKeyboard', core.platform.extendKeyboard);
|
||||
core.updateStatusBar();
|
||||
core.ui.drawSwitchs();
|
||||
}
|
||||
|
||||
////// 系统设置界面时,放开某个键的操作 //////
|
||||
actions.prototype._keyUpSwitchs = function (keycode) {
|
||||
if (keycode == 27 || keycode == 88) {
|
||||
|
||||
@ -2465,7 +2465,7 @@ control.prototype.setToolbarButton = function (useButton) {
|
||||
}
|
||||
|
||||
if (useButton == null) useButton = core.domStyle.toolbarBtn;
|
||||
if (!core.domStyle.isVertical || !core.platform.extendKeyboard) useButton = false;
|
||||
if (!core.domStyle.isVertical) useButton = false;
|
||||
core.domStyle.toolbarBtn = useButton;
|
||||
|
||||
if (useButton) {
|
||||
|
||||
@ -72,7 +72,6 @@ function core() {
|
||||
'isChrome': false, // 是否是Chrome
|
||||
'supportCopy': false, // 是否支持复制到剪切板
|
||||
'useLocalForage': true,
|
||||
'extendKeyboard': false,
|
||||
|
||||
'fileInput': null, // FileInput
|
||||
'fileReader': null, // 是否支持FileReader
|
||||
@ -285,7 +284,6 @@ core.prototype._init_platform = function () {
|
||||
core.platform.isQQ = /QQ/i.test(navigator.userAgent);
|
||||
core.platform.isWeChat = /MicroMessenger/i.test(navigator.userAgent);
|
||||
this._init_checkLocalForage();
|
||||
core.platform.extendKeyboard = core.getLocalStorage("extendKeyboard", false);
|
||||
if (window.FileReader) {
|
||||
core.platform.fileReader = new FileReader();
|
||||
core.platform.fileReader.onload = function () {
|
||||
|
||||
@ -1507,7 +1507,6 @@ ui.prototype.drawSwitchs = function() {
|
||||
"领域显伤: "+(core.flags.displayExtraDamage ? "[ON]" : "[OFF]"),
|
||||
"新版存档: "+(core.platform.useLocalForage ? "[ON]":"[OFF]"),
|
||||
"单击瞬移: "+(!core.hasFlag("__noClickMove__") ? "[ON]":"[OFF]"),
|
||||
"拓展键盘: "+(core.platform.extendKeyboard ? "[ON]":"[OFF]"),
|
||||
"返回主菜单"
|
||||
];
|
||||
this.drawChoices(null, choices);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user