Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
92bb9ca
Update dependencies
Sep 6, 2016
cd17867
WIP: Use KeyboardLayout module to translate keyboard events with the …
Sep 7, 2016
d4d817d
Don’t shadow ASCII characters with alt-bindings
Sep 9, 2016
2907906
Reorganize keymaps in spec
Sep 9, 2016
05da51b
Reinterpret non-latin keys when modifiers are used
Sep 9, 2016
2fbabde
Avoid passing keystroke string to buildKeydownEvent in spec
maxbrunsfeld Sep 9, 2016
805336f
Use KeyboardLayout.getCurrentKeymap, not .charactersForKeyCode
maxbrunsfeld Sep 9, 2016
a508c42
Don't use US equivalent for events w/ alt as the only modifier
maxbrunsfeld Sep 9, 2016
dc61898
Implement text input replay using KeyboardLayout.getCurrentKeymap()
maxbrunsfeld Sep 9, 2016
4df69d1
Switch buildKeydownEvent to use new keyboard event APIs
maxbrunsfeld Sep 9, 2016
924409a
Use KeyboardEvent.key property as much as possible
maxbrunsfeld Sep 13, 2016
b823c1e
Restore special handling of the dvorak-querty-command layout
maxbrunsfeld Sep 13, 2016
63ae823
:arrow_up: keyboard-layout
maxbrunsfeld Sep 13, 2016
56b9cc5
:shower:
Sep 14, 2016
d56c1b3
:art: constant names
Sep 14, 2016
ec9a089
:art: helpers module organization
Sep 14, 2016
e9eeeca
Use rimraf in clean script for portability
Sep 14, 2016
4b139f9
6.3.3-beta0
Sep 14, 2016
ef9419a
Clear the ctrlKey modifier on Windows when AltGraph is detected
Sep 14, 2016
5be368e
6.3.3-beta1
Sep 14, 2016
2452838
Allow ctrl-alt- bindings on Windows unless AltGraph variant is ASCII
Sep 15, 2016
fcd0eb3
Ditch coffee-cache because it makes it hard to debug syntax errors
Sep 15, 2016
c9b14fd
:arrow_up: keyboard-layout
Sep 15, 2016
83a451b
Mock out process.platform as darwin by default
Sep 15, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "atom-keymap",
"version": "6.3.2",
"version": "6.3.3-beta1",
"description": "Atom's DOM-aware keymap module",
"main": "./lib/keymap-manager",
"scripts": {
"prepublish": "npm run clean && npm run compile && npm run lint && npm run atomdoc",
"clean": "rm -rf lib && rm -rf api.json",
"clean": "rimraf lib && rimraf api.json",
"compile": "coffee --no-header --output lib --compile src && babel src --out-dir lib",
"lint": "coffeelint -r src spec && eslint src spec",
"test": "devtool --quit --console node_modules/mocha/bin/_mocha --colors spec/helpers/setup.js spec/*",
Expand All @@ -27,7 +27,7 @@
"event-kit": "^1.0.0",
"fs-plus": "^2.0.4",
"grim": "^1.2.1",
"keyboard-layout": "^1.0",
"keyboard-layout": "^1.2.0",
"pathwatcher": "^6.2",
"property-accessors": "^1",
"season": "^5.0.2"
Expand All @@ -39,12 +39,11 @@
"babel-preset-stage-0": "6.5.0",
"babel-register": "6.5.2",
"chai": "3.5.0",
"coffee-cache": "0.2.0",
"coffee-script": "1.7.0",
"coffeelint": "1.14.2",
"debounce": "1.0.0",
"devtool": "1.9.1",
"electron-rebuild": "1.1.3",
"devtool": "2.2.0",
"electron-rebuild": "1.2.1",
"eslint": "2.2.0",
"eslint-config-standard": "5.1.0",
"eslint-plugin-promise": "1.0.8",
Expand All @@ -55,7 +54,6 @@
"grunt-coffeelint": "0.0.6",
"grunt-contrib-coffee": "0.9.0",
"grunt-shell": "0.2.2",
"jasmine-focused": "1.0.4",
"lolex": "1.4.0",
"mocha": "2.4.5",
"rimraf": "2.2.2",
Expand Down
11 changes: 10 additions & 1 deletion spec/helpers/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
import lolex from 'lolex'
import sinon from 'sinon'

let sinonSandbox, fakeClock
let sinonSandbox, fakeClock, processPlatform, originalProcessPlatform

originalProcessPlatform = process.platform
processPlatform = process.platform
Object.defineProperty(process, 'platform', {get: () => processPlatform})

beforeEach(function () {
document.body.innerHTML = ''
Expand All @@ -16,6 +20,7 @@ beforeEach(function () {
afterEach(function () {
fakeClock.uninstall()
sinonSandbox.restore()
processPlatform = originalProcessPlatform
})

export function appendContent (element) {
Expand All @@ -30,3 +35,7 @@ export function stub () {
export function getFakeClock () {
return fakeClock
}

export function mockProcessPlatform (platform) {
processPlatform = platform
}
Loading