Ticket #4673: 4673_3.patch
File 4673_3.patch, 1.2 KB (added by , 15 years ago) |
---|
-
_source/plugins/undo/plugin.js
242 242 243 243 if ( beforeTypeImage.contents != currentSnapshot ) 244 244 { 245 // It's safe to now indicate typing state. 246 this.typing = true; 247 245 248 // This's a special save, with specified snapshot 246 249 // and without auto 'fireChange'. 247 250 if ( !this.save( false, beforeTypeImage, false ) ) … … 263 266 264 267 this.lastKeystroke = keystroke; 265 268 266 // Ignore modifier keys. (#4673)267 if( isModifierKey )268 return;269 269 // Create undo snap after typed too much (over 25 times). 270 270 if ( isEditingKey ) 271 271 { … … 274 274 275 275 if ( this.modifiersCount > 25 ) 276 276 { 277 this.save( );277 this.save( false, null, false ); 278 278 this.modifiersCount = 1; 279 279 } 280 280 } … … 285 285 286 286 if ( this.typesCount > 25 ) 287 287 { 288 this.save( );288 this.save( false, null, false ); 289 289 this.typesCount = 1; 290 290 } 291 291 } 292 292 293 this.typing = true;294 293 }, 295 294 296 295 reset : function() // Reset the undo stack.