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