test.mozbuild
author Masayuki Nakano <masayuki@d-toybox.com>
Sat, 02 Dec 2017 14:53:10 +0900
changeset 394946 afc17c7465c2371b7ba0f50c92ec065c099e9fd3
parent 274867 e03b93cbb64d4996a9f170d76a69801b9a708d84
permissions -rw-r--r--
Bug 1403759 - part 2: Handle edit/selection commands like insertNewline: in TextInputHandler::HandleCommand() r=m_kato Let's make TextInputHandler::HandleCommand() handle other commands which are caused by Backspace, Delete, Tab, ArrowUp, ArrowDown, ArrowRight, ArrowLeft, PageUp, PageDown, Home, End and Escape keys with various modifiers. This patch makes Korean users can do most key operation in editor even with composing Hangul character. Note that this patch has a hack for cancelOperation: command. The command is typically fired for Escape key press. However, it's also fired for Command + Period. Unfortunately, this behavior is really odd if subclass of NSResponder implements |void cancelOperation:(id)sender|. If it's implemented, Cocoa doesn't call its |void keyDown:(NSEvent)theEvent|. Instead, it calls only |void doCommandBySelector:(SEL)aSelector| and |void cancelOperation:(id)sender| when Command + Period is pressed. Therefore, we cannot dispatch keydown nor keypress event for this key combination if we implement it. Therefore, this patch doesn't implement the method but handle it in doCommandBySelector even though the super class of ChildView cannot handle the command with this path. MozReview-Commit-ID: 4hS23SiwNJv

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# This file is necessary to "bootstrap" the test case for the test_build
# test, because of the requirement of the top-level directory containing
# config/*.mk.
DIRS += [
    'python/mozbuild/mozbuild/test/backend/data/build',
]