mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-11 05:54:12 +01:00
Use a different hack to handle the escape key.
This commit is contained in:
@@ -26,11 +26,6 @@
|
||||
<script type="application/x-javascript;version=1.8" src="&dactyl.content;dactyl-overlay.js"/>
|
||||
|
||||
<window id="&dactyl.mainWindow;">
|
||||
<keyset id="mainKeyset">
|
||||
<!-- Why do we need this? ––Kris -->
|
||||
<key id="key_stop" keycode="VK_ESCAPE" oncommand="&events;.onEscape();"/>
|
||||
<!-- other keys are handled inside the event loop in events.js -->
|
||||
</keyset>
|
||||
|
||||
<popupset>
|
||||
<panel id="dactyl-visualbell" dactyl:highlight="Bell"
|
||||
|
||||
@@ -934,6 +934,10 @@ const Events = Module("events", {
|
||||
let motionMap = (this._input.pendingMotionMap && this._input.pendingMotionMap.names[0]) || "";
|
||||
if (!(modes.extended & modes.HINTS))
|
||||
statusline.updateInputBuffer(motionMap + this._input.buffer);
|
||||
|
||||
// This is a stupid, silly, and revolting hack.
|
||||
if (isEscape(key))
|
||||
this.onEscape();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1034,10 +1038,6 @@ const Events = Module("events", {
|
||||
};
|
||||
},
|
||||
mappings: function () {
|
||||
mappings.add(modes.all,
|
||||
["<Esc>", "<C-[>"], "Focus content",
|
||||
function () { events.onEscape(); });
|
||||
|
||||
// add the ":" mapping in all but insert mode mappings
|
||||
mappings.add(modes.matchModes({ extended: false, input: false }),
|
||||
[":"], "Enter command line mode",
|
||||
|
||||
Reference in New Issue
Block a user