微星的GE系列有个脑残设计, 所谓为了防止游戏玩家误按Win键而切出游戏, 将win键移到右侧边, 导致使用win[快捷键和Fn键调音量必须双手使用, 严重影响日常快捷键使用 显然小脑发育正常的游戏玩家都不可能误触Win键(大小手感显然不同), 如果要是能按错我看玩游戏也悬, 应该尽快去医院治疗一下.(笔者吐槽) 去年看到了一篇文章, 给我指明了思路, 可以通过改EC的键映射表来实现改键. 查了资料, 顺便弄到个GE60的改完的现成EC参照, 没几天就搞好了. 虽然也是依葫芦画瓢, 不求甚解, 但确实有效. 一直想找个时间整理一下, 但拖延症直到现在才腾出时间写一篇文章 本篇文章不会写的太详细, 毕竟只是提供一个成功案例. 原理和修改方法请参考下面提供的参考文章或Google.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.qa.docx; | |
| import org.w3c.dom.Document; | |
| import org.w3c.dom.Element; | |
| import org.w3c.dom.NodeList; | |
| import javax.xml.parsers.DocumentBuilder; | |
| import javax.xml.parsers.DocumentBuilderFactory; | |
| import java.io.*; | |
| import java.util.zip.ZipEntry; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 使用WebRTC来获取电脑的IP地址(内网的地址/非公网) | |
| * 支持Chrome/Firefox | |
| * use WebRTC to find out local network IP | |
| * support chrome and firefox | |
| * @param onNewIP callback | |
| */ | |
| function findIP(onNewIP) { | |
| var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection; | |
| var pc = new myPeerConnection({iceServers: [{urls: "stun:stun.l.google.com:19302"}]}), |