Commit db634e6c authored by Joel Hockey's avatar Joel Hockey Committed by Commit Bot

Revert to click handling for touch on input during rename

Bug: 762667
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Iebf2bf6bc2adf62e723013602f92f3451aed8038
Reviewed-on: https://chromium-review.googlesource.com/920203Reviewed-by: default avatarTatsuhisa Yamaguchi <yamaguchi@chromium.org>
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537152}
parent 7f1d7dbb
......@@ -23,7 +23,7 @@ function FileTableList() {
*/
FileTableList.decorate = function(self) {
self.__proto__ = FileTableList.prototype;
}
};
FileTableList.prototype.__proto__ = cr.ui.table.TableList.prototype;
......@@ -271,10 +271,12 @@ filelist.handleTap = function(e, index, eventType) {
}
var isTap = eventType == FileTapHandler.TapEvent.TAP ||
eventType == FileTapHandler.TapEvent.LONG_TAP;
if (eventType == FileTapHandler.TapEvent.TAP &&
e.target.classList.contains('detail-checkmark')) {
// Single tap on the checkbox in the list view mode should toggle select,
// just like a mouse click on it.
// Revert to click handling for single tap on checkbox or tap during rename.
// Single tap on the checkbox in the list view mode should toggle select.
// Single tap on input for rename should focus on input.
var isCheckbox = e.target.classList.contains('detail-checkmark');
var isRename = e.target.localName == 'input';
if (eventType == FileTapHandler.TapEvent.TAP && (isCheckbox || isRename)) {
return false;
}
if (sm.multiple && sm.getCheckSelectMode() && isTap && !e.shiftKey) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment